pan/midgard: Add perspective ops to mir_get_swizzle
I really need to just make this a table.. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
This commit is contained in:
@@ -76,6 +76,12 @@ mir_get_swizzle(midgard_instruction *ins, unsigned idx)
|
||||
case midgard_op_ld_cubemap_coords:
|
||||
components = 3;
|
||||
break;
|
||||
case midgard_op_ldst_perspective_division_z:
|
||||
components = 3;
|
||||
break;
|
||||
case midgard_op_ldst_perspective_division_w:
|
||||
components = 4;
|
||||
break;
|
||||
default:
|
||||
components = 1;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user