mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 02:48:06 +02:00
radv/gfx9: fix buffer size on gfx9.
The VI sizing only applies to VI. This fixes: dEQP-VK.image.image_size.buffer.* Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
ff23e03d60
commit
b880cd3b59
1 changed files with 1 additions and 1 deletions
|
|
@ -2012,7 +2012,7 @@ get_buffer_size(struct ac_nir_context *ctx, LLVMValueRef descriptor, bool in_ele
|
||||||
LLVMConstInt(ctx->ac.i32, 2, false), "");
|
LLVMConstInt(ctx->ac.i32, 2, false), "");
|
||||||
|
|
||||||
/* VI only */
|
/* VI only */
|
||||||
if (ctx->abi->chip_class >= VI && in_elements) {
|
if (ctx->abi->chip_class == VI && in_elements) {
|
||||||
/* On VI, the descriptor contains the size in bytes,
|
/* On VI, the descriptor contains the size in bytes,
|
||||||
* but TXQ must return the size in elements.
|
* but TXQ must return the size in elements.
|
||||||
* The stride is always non-zero for resources using TXQ.
|
* The stride is always non-zero for resources using TXQ.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue