aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2019-07-02 22:31:14 -0400
committerMarek Olšák <[email protected]>2019-07-09 17:24:16 -0400
commit80b3f4b4bdd00190158b865eed67ea5f31d2197b (patch)
tree7e65723ca9a1e81c27c45a958afce57b13a647f4
parent1f53a3e7668bbc249e051bbb51f22bde50ea6e99 (diff)
radeonsi/gfx9: fix an oversight in primitive binning code
Acked-by: Pierre-Eric Pelloux-Prayer <[email protected]> Acked-by: Dave Airlie <[email protected]>
-rw-r--r--src/gallium/drivers/radeonsi/si_state_binning.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state_binning.c b/src/gallium/drivers/radeonsi/si_state_binning.c
index b3c397ccd48..5f280ae7ec1 100644
--- a/src/gallium/drivers/radeonsi/si_state_binning.c
+++ b/src/gallium/drivers/radeonsi/si_state_binning.c
@@ -196,7 +196,7 @@ static struct uvec2 si_get_depth_bin_size(struct si_context *sctx)
unsigned stencil_coeff = tex->surface.has_stencil &&
dsa->stencil_enabled ? 1 : 0;
unsigned sum = 4 * (depth_coeff + stencil_coeff) *
- tex->buffer.b.b.nr_samples;
+ MAX2(tex->buffer.b.b.nr_samples, 1);
static const si_bin_size_subtable table[] = {
{