summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2020-07-06 23:51:25 -0400
committerEric Engestrom <eric@engestrom.ch>2020-08-05 22:23:20 +0200
commit402e0f1291f0e1050756fa2dae8663978cc47e7c (patch)
tree95de4a74da9c3baa265bc8e29b3fd5b8733c0141 /src
parent684712ef7327042cc6412807d3a538f09f75de9c (diff)
radeonsi/gfx10: set the correct value for OFFCHIP_BUFFERING
Copied from PAL. Higher values break tessellation, which I was only able to reproduce with register shadowing enabled. Fixes: 0bf3e6fae7f82b4f16fbcbb05a1ae47f7930e189 "radeonsi/gfx10: double the number of tessellation offchip buffers per SE" Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5798> (cherry picked from commit 1c6eca23fdd8bc112c70914100601d0e382a8154)
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/radeonsi/si_pipe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c
index f75935b91b3..97989a275e3 100644
--- a/src/gallium/drivers/radeonsi/si_pipe.c
+++ b/src/gallium/drivers/radeonsi/si_pipe.c
@@ -1057,7 +1057,7 @@ static struct pipe_screen *radeonsi_screen_create_impl(struct radeon_winsys *ws,
unsigned max_offchip_buffers_per_se;
if (sscreen->info.chip_class >= GFX10)
- max_offchip_buffers_per_se = 256;
+ max_offchip_buffers_per_se = 128;
/* Only certain chips can use the maximum value. */
else if (sscreen->info.family == CHIP_VEGA12 || sscreen->info.family == CHIP_VEGA20)
max_offchip_buffers_per_se = double_offchip_buffers ? 128 : 64;