projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5158603
)
radv: Allow writing 0 scissors.
author
Bas Nieuwenhuizen
<bas@basnieuwenhuizen.nl>
Tue, 2 Jan 2018 02:32:14 +0000
(
03:32
+0100)
committer
Bas Nieuwenhuizen
<bas@basnieuwenhuizen.nl>
Wed, 3 Jan 2018 23:14:19 +0000
(
00:14
+0100)
When rasterization is disabled we can have that few.
Fixes: 76603aa90b8 "radv: Drop the default viewport when 0 viewports are given."
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/si_cmd_buffer.c
patch
|
blob
|
history
diff --git
a/src/amd/vulkan/si_cmd_buffer.c
b/src/amd/vulkan/si_cmd_buffer.c
index 68913ec2ad3caf45318b590372d82f7103877437..7d75d69a9a83792d7f7b0ffc3333110cdce770bf 100644
(file)
--- a/
src/amd/vulkan/si_cmd_buffer.c
+++ b/
src/amd/vulkan/si_cmd_buffer.c
@@
-673,7
+673,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++) {