freedreno/ir3: fix image dimensions offset
authorRob Clark <robdclark@gmail.com>
Thu, 7 Jun 2018 17:54:15 +0000 (13:54 -0400)
committerRob Clark <robdclark@gmail.com>
Mon, 11 Jun 2018 13:06:03 +0000 (09:06 -0400)
copy-pasta fail from how SSBO sizes are handled.

Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/ir3/ir3_nir.c

index a3896a3071f16ce3801f14b0e80d9eba774145e6..8f50b2741f0a34a891cd600f641a273d957ba00d 100644 (file)
@@ -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;