summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/r600
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2012-09-13 17:15:57 +0000
committerTom Stellard <thomas.stellard@amd.com>2012-09-19 14:58:53 -0400
commit3e3ca9271887ea4c8d3312d8943aefcd5e1893e0 (patch)
treed729d32ba58e53bb6966f54e7e667bcc8bd4dc62 /src/gallium/drivers/r600
parent9db64530bbb7b584bce9ac2153035b0939f06681 (diff)
r600g: Set the correct value of COLOR*_DIM for RATs
For buffers (which is what is being used for RATs), the COLOR*_DIM.WIDTH_MASK field needs to be set to the low 16-bits of the buffer size, and the COLOR*_DIM.HEIEGHT_MAX needs to be set to the high bits. Reviewed-by: Marek Olšák <maraeo@gmail.com>
Diffstat (limited to 'src/gallium/drivers/r600')
-rw-r--r--src/gallium/drivers/r600/evergreen_state.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/r600/evergreen_state.c b/src/gallium/drivers/r600/evergreen_state.c
index f244e8a5cad..47bd826f8e9 100644
--- a/src/gallium/drivers/r600/evergreen_state.c
+++ b/src/gallium/drivers/r600/evergreen_state.c
@@ -1312,8 +1312,8 @@ void evergreen_init_color_surface(struct r600_context *rctx,
if (rtex->is_rat) {
color_info |= S_028C70_RAT(1);
- color_dim = S_028C78_WIDTH_MAX(pipe_tex->width0)
- | S_028C78_HEIGHT_MAX(pipe_tex->height0);
+ color_dim = S_028C78_WIDTH_MAX(pipe_tex->width0 & 0xffff)
+ | S_028C78_HEIGHT_MAX((pipe_tex->width0 >> 16) & 0xffff);
}
/* EXPORT_NORM is an optimzation that can be enabled for better