i965: CS writes/reads should use I915_GEM_INSTRUCTION
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 9 Oct 2013 13:49:11 +0000 (15:49 +0200)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 28 Oct 2013 18:29:15 +0000 (11:29 -0700)
commit32a3f5f6d768e5828be1d1f46b1b3f819f55cba8
treeac4a575c1730ea09b869e03276ddc0b376f20436
parentf278d49c4bcfedbda10cb224cb251e3755e88288
i965: CS writes/reads should use I915_GEM_INSTRUCTION

Otherwise the gen6 w/a in the kernel won't kick in and the write will
land nowhere.

Inspired by a patch Ken pointed me at which had the same issue (but
isn't yet merged and also for a gen7+ feature). An audit of the entire
driver didn't reveal any other case than the one in in the write_reg
helper used by the gen6 queryobj code.

Acked-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Tested-by: Xinkai Chen <yeled.nova@gmail.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Cc: "9.2" <mesa-stable@lists.freedesktop.org>
src/mesa/drivers/dri/i965/gen6_queryobj.c