mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 13:10:10 +01:00
radv: fix buffer views on SI/CIK.
Fixes CTS dEQP-VK.memory.pipeline_barrier.host_write_uniform_texel_buffer.1024
on SI/CIK with radv.
Fixes: f4e499ec (radv: add initial non-conformant radv vulkan driver)
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
dd072cf4b1
commit
ca82ef5ac7
1 changed files with 5 additions and 0 deletions
|
|
@ -181,6 +181,11 @@ radv_make_buffer_descriptor(struct radv_device *device,
|
|||
state[0] = va;
|
||||
state[1] = S_008F04_BASE_ADDRESS_HI(va >> 32) |
|
||||
S_008F04_STRIDE(stride);
|
||||
|
||||
if (device->physical_device->rad_info.chip_class < VI && stride) {
|
||||
range /= stride;
|
||||
}
|
||||
|
||||
state[2] = range;
|
||||
state[3] = S_008F0C_DST_SEL_X(radv_map_swizzle(desc->swizzle[0])) |
|
||||
S_008F0C_DST_SEL_Y(radv_map_swizzle(desc->swizzle[1])) |
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue