mesa/src
Plamena Manolova d5cc7e47a8 i965: Fix ARB_indirect_parameters logic.
This patch modifies the ARB_indirect_parameters logic in
brw_draw_prims, so that our implementation isn't affected if
another application attempts to use predicates. Previously we
were using a predicate with a DELTAS_EQUAL comparison operation
and relying on the MI_PREDICATE_DATA register being 0. Our code
to initialize MI_PREDICATE_DATA to 0 was incorrect, so we were
accidentally using whatever value was written there. Because the
kernel does not initialize the MI_PREDICATE_DATA register on
hardware context creation, we might inherit the value from whatever
context was last running on the GPU (likely another process).
The Haswell command parser also does not currently allow us to write
the MI_PREDICATE_DATA register. Rather than fixing this and requiring
an updated kernel, we switch to a different approach which uses a
SRCS_EQUAL predicate that makes no assumptions about the states of any
of the predicate registers.

Fixes Piglit's spec/arb_indirect_parameters/tf-count-arrays test.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=103085
Signed-off-by: Plamena Manolova <plamena.manolova@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
(cherry picked from commit 048d4c45c9)
2017-11-03 18:30:32 +00:00
..
amd radv: add cache items to in memory cache when reading from disk 2017-11-03 18:21:42 +00:00
broadcom meson: Fix vc5 deps on the XML-generated headers. 2017-10-20 17:16:00 -07:00
compiler nir/opt_intrinsics: Fix values for gl_SubGroupG{e,t}MaskARB 2017-11-03 18:19:57 +00:00
egl wayland-egl: fix wayland cflags 2017-10-27 21:33:04 +01:00
gallium i915g: make gears run again. 2017-11-03 18:21:59 +00:00
gbm meson: build libEGL 2017-10-20 16:46:48 -07:00
getopt
glx meson: build libEGL 2017-10-20 16:46:48 -07:00
gtest meson: convert gtest to an internal dependency 2017-10-03 10:02:08 -07:00
hgl glapi/hgl: remove the final user of _glapi_check_table() 2016-10-06 15:03:46 +01:00
intel intel/fs: Alloc pull constants off mem_ctx 2017-11-03 18:20:04 +00:00
loader meson: split and simplify dependencies 2017-10-16 16:32:43 -07:00
mapi mapi/shared-glapi/test: rework glapitable.h handling 2017-10-13 11:12:08 -07:00
mesa i965: Fix ARB_indirect_parameters logic. 2017-11-03 18:30:32 +00:00
util disk_cache: Fix issue reading GLSL metadata 2017-11-03 18:21:59 +00:00
vulkan meson: move wayland_drm_protocol generation to wayland-drm 2017-10-20 16:46:48 -07:00
git_sha1.h.in meson: Build i965 and dri stack 2017-10-09 13:42:44 -07:00
Makefile.am configure: Add the new "vc5" driver to the list, requiring a simulator. 2017-10-10 11:42:04 -07:00
meson.build meson: build libEGL 2017-10-20 16:46:48 -07:00
SConscript scons: use python3-compatible print() 2017-09-25 11:57:12 +01:00