From a2fc9e5f86096dbc2461eaf7e5ad5cf071f8d472 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Wed, 8 Jan 2014 11:08:47 +0000 Subject: Revert "sna: Remove spurious SAMPLER writemask for gen4" This reverts commit 4966f8374a068ca2a533e30594bfd333551ffd37. Not so spurious after all! Reported-by: Michal Suchanek Signed-off-by: Chris Wilson --- src/sna/brw/brw_eu_emit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/sna/brw/brw_eu_emit.c b/src/sna/brw/brw_eu_emit.c index 81d14372..5c0b3065 100644 --- a/src/sna/brw/brw_eu_emit.c +++ b/src/sna/brw/brw_eu_emit.c @@ -1802,7 +1802,7 @@ void brw_SAMPLE(struct brw_compile *p, { assert(writemask); - if (writemask != WRITEMASK_XYZW) { + if (p->gen < 050 || writemask != WRITEMASK_XYZW) { struct brw_reg m1 = brw_message_reg(msg_reg_nr); writemask = ~writemask & WRITEMASK_XYZW; -- cgit v1.2.3