mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
radv/gfx9: fix level count in color register setup.
There was an off by one here.
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Cc: "17.2" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
(cherry picked from commit 11834195e9)
This commit is contained in:
parent
dbca342014
commit
d8f8689101
1 changed files with 1 additions and 1 deletions
|
|
@ -3123,7 +3123,7 @@ radv_initialise_color_surface(struct radv_device *device,
|
|||
S_028C74_RESOURCE_TYPE(iview->image->surface.u.gfx9.resource_type);
|
||||
cb->cb_color_attrib2 = S_028C68_MIP0_WIDTH(iview->image->info.width - 1) |
|
||||
S_028C68_MIP0_HEIGHT(iview->image->info.height - 1) |
|
||||
S_028C68_MAX_MIP(iview->image->info.levels);
|
||||
S_028C68_MAX_MIP(iview->image->info.levels - 1);
|
||||
|
||||
cb->gfx9_epitch = S_0287A0_EPITCH(iview->image->surface.u.gfx9.surf.epitch);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue