mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 02:48:06 +02:00
pan/bi: Stop lowering swizzles on mkvec and swz
The new lowering can handle all the swizzle cases and is generally better at it than swizzle lowering. Reviewed-by: Lorenzo Rossi <lorenzo.rossi@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40720>
This commit is contained in:
parent
ed83d46d4e
commit
b9e33c7897
1 changed files with 7 additions and 0 deletions
|
|
@ -224,6 +224,13 @@ void
|
|||
bi_lower_swizzle(bi_context *ctx)
|
||||
{
|
||||
bi_foreach_instr_global_safe(ctx, ins) {
|
||||
/* bi_lower_mkvec_swz takes care of these and can handle any swizzle */
|
||||
if (ins->op == BI_OPCODE_MKVEC_V2I16 ||
|
||||
ins->op == BI_OPCODE_MKVEC_V4I8 ||
|
||||
ins->op == BI_OPCODE_SWZ_V2I16 ||
|
||||
ins->op == BI_OPCODE_SWZ_V4I8)
|
||||
continue;
|
||||
|
||||
bi_foreach_src(ins, s) {
|
||||
if (bi_is_null(ins->src[s]))
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue