radeonsi: emit TA_BC_BASE_ADDR_HI for border color on CIK
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Nov 2012 00:00:59 +0000 (19:00 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 28 Jun 2013 19:16:03 +0000 (15:16 -0400)
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
src/gallium/drivers/radeonsi/si_state.c

index 0dc74bc2c82877f61f38acae37c83b4a45685ca9..7df38e9fde8f945d19f74719e56d07c1c47fcfa0 100644 (file)
@@ -2472,6 +2472,8 @@ static struct si_pm4_state *si_bind_sampler(struct r600_context *rctx, unsigned
                                         (void*)rctx->border_color_table);
 
                si_pm4_set_reg(pm4, R_028080_TA_BC_BASE_ADDR, va_offset >> 8);
+               if (rctx->chip_class >= CIK)
+                       si_pm4_set_reg(pm4, R_028084_TA_BC_BASE_ADDR_HI, va_offset >> 40);
                rctx->ws->buffer_unmap(rctx->border_color_table->cs_buf);
                si_pm4_add_bo(pm4, rctx->border_color_table, RADEON_USAGE_READ);
        }