mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
i965/vec4: check opcode on vec4_instruction::reads_flag(channel)
Commit f17b78 added an alternative reads_flag(channel) that returned if the instruction was reading a specific channel flag. By mistake it only took into account the predicate, but when the opcode is VS_OPCODE_UNPACK_FLAGS_SIMD4X2 there isn't any predicate, but the flag are used. That mistake caused some regressions on old hw. More information on this bug: https://bugs.freedesktop.org/show_bug.cgi?id=92621 Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
fb064901e9
commit
2f1bc1da86
1 changed files with 2 additions and 2 deletions
|
|
@ -188,8 +188,8 @@ public:
|
|||
|
||||
bool reads_flag(unsigned c)
|
||||
{
|
||||
if (!reads_flag())
|
||||
return false;
|
||||
if (opcode == VS_OPCODE_UNPACK_FLAGS_SIMD4X2)
|
||||
return true;
|
||||
|
||||
switch (predicate) {
|
||||
case BRW_PREDICATE_NONE:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue