anv/pipeline: Fix bind maps for fragment output arrays
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 25 Aug 2016 19:21:51 +0000 (12:21 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 30 Aug 2016 22:08:23 +0000 (15:08 -0700)
Found by inspection.

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Cc: "12.0" <mesa-stable@lists.freedesktop.org>
src/intel/vulkan/anv_pipeline.c

index 88f414e023ad64fa939a177d632c145d39ed6981..dd93d4a2ac1b914b4f07ed9dd819ecfa8bb788b5 100644 (file)
@@ -639,7 +639,7 @@ anv_pipeline_compile_fs(struct anv_pipeline *pipeline,
          assert(num_rts + array_len <= 8);
 
          for (unsigned i = 0; i < array_len; i++) {
-            rt_bindings[num_rts] = (struct anv_pipeline_binding) {
+            rt_bindings[num_rts + i] = (struct anv_pipeline_binding) {
                .set = ANV_DESCRIPTOR_SET_COLOR_ATTACHMENTS,
                .binding = 0,
                .index = rt + i,