vk: Use the correct stride for CC_VIEWPORT structs
authorKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Mon, 11 Jan 2016 20:27:51 +0000 (12:27 -0800)
committerKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Tue, 12 Jan 2016 18:53:59 +0000 (10:53 -0800)
src/vulkan/gen8_cmd_buffer.c

index 308b72b3d7b0f1813b068e42fae149bbd1ee243b..b12f6635afd767d8a80f3526b5318ca1af5f1df1 100644 (file)
@@ -109,7 +109,7 @@ emit_viewport_state(struct anv_cmd_buffer *cmd_buffer,
 
       GENX(SF_CLIP_VIEWPORT_pack)(NULL, sf_clip_state.map + i * 64,
                                  &sf_clip_viewport);
-      GENX(CC_VIEWPORT_pack)(NULL, cc_state.map + i * 32, &cc_viewport);
+      GENX(CC_VIEWPORT_pack)(NULL, cc_state.map + i * 8, &cc_viewport);
    }
 
    if (!cmd_buffer->device->info.has_llc) {