mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-03 17:00:33 +01:00
radv: Allow writing 0 scissors.
When rasterization is disabled we can have that few. Fixes:76603aa90b"radv: Drop the default viewport when 0 viewports are given." Reviewed-by: Dave Airlie <airlied@redhat.com> (cherry picked from commit1c78e4f053)
This commit is contained in:
parent
467414c5cd
commit
5fe6c5fdfb
1 changed files with 2 additions and 1 deletions
|
|
@ -676,7 +676,8 @@ si_write_scissors(struct radeon_winsys_cs *cs, int first,
|
|||
int i;
|
||||
float scale[3], translate[3], guardband_x = INFINITY, guardband_y = INFINITY;
|
||||
const float max_range = 32767.0f;
|
||||
assert(count);
|
||||
if (!count)
|
||||
return;
|
||||
|
||||
radeon_set_context_reg_seq(cs, R_028250_PA_SC_VPORT_SCISSOR_0_TL + first * 4 * 2, count * 2);
|
||||
for (i = 0; i < count; i++) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue