mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
radeonsi: fix assertion failure by using the correct type
src/gallium/drivers/radeonsi/si_state_viewport.c:196: si_emit_guardband: Assertion `vp_as_scissor.maxx <= max_viewport_size[vp_as_scissor.quant_mode] && vp_as_scissor.maxy <= max_viewport_size[vp_as_scissor.quant_mode]' failed. The comparison was unsigned, so negative maxx or maxy would fail. Fixes:3c540e0a74"radeonsi: Fix guardband computation for large render targets" (cherry picked from commit3ad2a9b3fa)
This commit is contained in:
parent
a4d5161d42
commit
e46e3bfd13
1 changed files with 1 additions and 1 deletions
|
|
@ -186,7 +186,7 @@ static void si_emit_guardband(struct si_context *ctx)
|
|||
ctx->chip_class >= VI ? 16 : MAX2(ctx->screen->se_tile_repeat, 16);
|
||||
|
||||
/* Indexed by quantization modes */
|
||||
static unsigned max_viewport_size[] = {65535, 16383, 4095};
|
||||
static int max_viewport_size[] = {65535, 16383, 4095};
|
||||
|
||||
/* Ensure that the whole viewport stays representable in
|
||||
* absolute coordinates.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue