mesa/src
Roland Scheidegger ea227f4322 r600: don't emit tes samplers/views when tes isn't active
Similar to const buffers. The driver must not emit any tes-related state if tes
is disabled, since the hw slots are all shared by VS, therefore it would
overwrite them (the mesa state tracker might not do this, but it would be
perfectly legal to do so).
Nevertheless I think the dirty state tracking logic in the driver is
fundamentally flawed when tes is disabled/enabled, since it looks to me like
the VS (and TES) state would not get reemitted to the correct slots (if it's
not dirty anyway). Unless I'm missing something...
Theoretically, the overwrite problem could be solved by using non-overlapping
resource slots for TES and VS (since we're not even close to using half the
resource slots), but it wouldn't work for constant buffers nor samplers, and
for VS would still need to propagate changes to both LS and VS, so probably
not a useful idea.
Unfortunately there's zero coverage of this with piglit, since all tessellation
shader tests are just shader_runner tests, which are unsuitable for testing
any kind of state dependency tracking issues (so I can't even quickly hack
something up to proove it and fix it...).
TCS otoh is just fine - like GS it has its own hw slots.

Tested-by: Konstantin Kharlamov <hi-angel@yandex.ru>
Reviewed-by: Dave Airlie <airlied@redhat.com>
2018-01-10 04:59:00 +01:00
..
amd ac: rework emit_barrier() to not segfault on radeonsi 2018-01-09 10:21:32 +11:00
broadcom broadcom/vc5: Fix discard_if during control flow. 2018-01-03 14:31:36 -08:00
compiler .gitignore: Ignore new generated files 2018-01-08 21:11:11 -08:00
egl egl/android: Fix build break with dri2_initialize_android _EGLDisplay parameter 2018-01-04 10:18:10 -06:00
gallium r600: don't emit tes samplers/views when tes isn't active 2018-01-10 04:59:00 +01:00
gbm meson: add dep_thread to every lib that includes threads.h 2017-12-07 17:29:42 +00:00
getopt
glx meson: fix glx-test race 2017-12-13 09:37:12 -08:00
gtest meson: convert gtest to an internal dependency 2017-10-03 10:02:08 -07:00
hgl
intel genxml: Add missing INSTDONE_1 bits on Gen7.5+. 2018-01-09 10:13:53 -08:00
loader loader/dri3: Add XRGB2101010 and ARGB2101010 support. 2018-01-03 22:57:56 +01:00
mapi mesa: Tidy up the 4.6 section of GL4x.xml 2018-01-06 09:28:45 +01:00
mesa Fix use of alloca() without #include <c99_alloca.h> 2018-01-09 22:07:52 +00:00
util link mesautil with pthreads 2018-01-08 11:40:02 -05:00
vulkan vulkan/wsi: free cmd pools 2017-12-28 09:57:33 +10:00
git_sha1.h.in meson: Build i965 and dri stack 2017-10-09 13:42:44 -07:00
Makefile.am wayland-drm: static inline wayland_drm_buffer_get 2017-11-08 14:40:12 +00:00
meson.build meson: build r600 driver 2017-11-28 14:06:33 -08:00
SConscript buildsys: move file regeneration logic to the script itself 2017-10-27 13:38:37 +01:00