From: Rob Clark Date: Thu, 7 Jun 2018 17:54:15 +0000 (-0400) Subject: freedreno/ir3: fix image dimensions offset X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9bb90a3255c7494796d57eef3a73bc0b77a005d5;p=mesa.git freedreno/ir3: fix image dimensions offset copy-pasta fail from how SSBO sizes are handled. Signed-off-by: Rob Clark --- diff --git a/src/gallium/drivers/freedreno/ir3/ir3_nir.c b/src/gallium/drivers/freedreno/ir3/ir3_nir.c index a3896a3071f..8f50b2741f0 100644 --- a/src/gallium/drivers/freedreno/ir3/ir3_nir.c +++ b/src/gallium/drivers/freedreno/ir3/ir3_nir.c @@ -255,7 +255,7 @@ ir3_nir_scan_driver_consts(nir_shader *shader, if (layout->image_dims.mask & (1 << idx)) break; layout->image_dims.mask |= (1 << idx); - layout->ssbo_size.off[idx] = + layout->image_dims.off[idx] = layout->image_dims.count; layout->image_dims.count += 3; /* three const per */ break;