mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 15:20:10 +01:00
i965/vec4: Use can_do_writemask in can_reswizzle
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
75b68f9114
commit
61ee5e62a2
1 changed files with 5 additions and 3 deletions
|
|
@ -965,10 +965,12 @@ vec4_instruction::can_reswizzle(const struct brw_device_info *devinfo,
|
|||
int swizzle_mask)
|
||||
{
|
||||
/* Gen6 MATH instructions can not execute in align16 mode, so swizzles
|
||||
* or writemasking are not allowed.
|
||||
* are not allowed.
|
||||
*/
|
||||
if (devinfo->gen == 6 && is_math() &&
|
||||
(swizzle != BRW_SWIZZLE_XYZW || dst_writemask != WRITEMASK_XYZW))
|
||||
if (devinfo->gen == 6 && is_math() && swizzle != BRW_SWIZZLE_XYZW)
|
||||
return false;
|
||||
|
||||
if (!can_do_writemask(devinfo) && dst_writemask != WRITEMASK_XYZW)
|
||||
return false;
|
||||
|
||||
/* If this instruction sets anything not referenced by swizzle, then we'd
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue