mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-06 23:15:18 +00:00
gpu2: fix indirect buffer
added all draw command fix depth buffer address
This commit is contained in:
parent
4ba7e92713
commit
c52726d6ec
3 changed files with 66 additions and 21 deletions
|
|
@ -182,7 +182,8 @@ void amdgpu::draw(GraphicsPipe &pipe, int vmId, std::uint32_t firstVertex,
|
|||
if (!pipe.context.dbRenderControl.depthClearEnable) {
|
||||
depthAccess |= Access::Read;
|
||||
}
|
||||
if (!pipe.context.dbDepthView.zReadOnly) {
|
||||
if (!pipe.context.dbDepthView.zReadOnly &&
|
||||
pipe.context.dbDepthControl.depthWriteEnable) {
|
||||
depthAccess |= Access::Write;
|
||||
}
|
||||
}
|
||||
|
|
@ -205,8 +206,11 @@ void amdgpu::draw(GraphicsPipe &pipe, int vmId, std::uint32_t firstVertex,
|
|||
|
||||
auto imageView = cacheTag.getImageView(
|
||||
{
|
||||
.readAddress = pipe.context.dbZReadBase,
|
||||
.writeAddress = pipe.context.dbZWriteBase,
|
||||
.readAddress = static_cast<std::uint64_t>(pipe.context.dbZReadBase)
|
||||
<< 8,
|
||||
.writeAddress =
|
||||
static_cast<std::uint64_t>(pipe.context.dbZWriteBase) << 8,
|
||||
.type = gnm::TextureType::Dim2D,
|
||||
.dfmt = gnm::getDataFormat(pipe.context.dbZInfo.format),
|
||||
.nfmt = gnm::getNumericFormat(pipe.context.dbZInfo.format),
|
||||
.extent =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue