Revert "sna: Remove spurious SAMPLER writemask for gen4"

This reverts commit 4966f8374a.

Not so spurious after all!

Reported-by: Michal Suchanek
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2014-01-08 11:08:47 +00:00
parent b858c28d04
commit a2fc9e5f86
1 changed files with 1 additions and 1 deletions

View File

@ -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;