mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-08 15:00:11 +01:00
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>
This commit is contained in:
parent
9db64530bb
commit
3e3ca92718
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue