i965: fix clear color bo address relocation
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Sat, 7 Jul 2018 13:06:22 +0000 (14:06 +0100)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Sat, 7 Jul 2018 19:54:55 +0000 (20:54 +0100)
Fixes: 7987d041fda0c9 ("i965/surface_state: Emit the clear color address instead of value.")
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_wm_surface_state.c

index 73cae9ef7c5b7bc5ddb1a250f594eb798d2972b5..9397b637c797e009dba1e6fe158d94be7b3496b1 100644 (file)
@@ -220,7 +220,7 @@ brw_emit_surface_state(struct brw_context *brw,
    if (clear_bo != NULL) {
       /* Make sure the offset is aligned with a cacheline. */
       assert((clear_offset & 0x3f) == 0);
-      uint32_t *clear_address =
+      uint64_t *clear_address =
             state + brw->isl_dev.ss.clear_color_state_offset;
       *clear_address = brw_state_reloc(&brw->batch,
                                        *surf_offset +