mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-30 03:30:10 +01:00
pan/bi: Lower swizzles for 8-bit CSEL
With OpenCL we can generate stuff like CSEL.u32.eq r0.b0000, we need to handle it when lowering swizzles. Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22228>
This commit is contained in:
parent
66edd030ab
commit
d00d2ae701
1 changed files with 4 additions and 1 deletions
|
|
@ -168,7 +168,10 @@ lower_swizzle(bi_context *ctx, bi_instr *ins, unsigned src)
|
|||
/* Lower it away */
|
||||
bi_builder b = bi_init_builder(ctx, bi_before_instr(ins));
|
||||
|
||||
bool is_8 = (bi_opcode_props[ins->op].size == BI_SIZE_8);
|
||||
bool is_8 = (bi_opcode_props[ins->op].size == BI_SIZE_8) ||
|
||||
(bi_opcode_props[ins->op].size == BI_SIZE_32 &&
|
||||
ins->src[src].swizzle >= BI_SWIZZLE_B0000);
|
||||
|
||||
bi_index orig = ins->src[src];
|
||||
bi_index stripped = bi_replace_index(bi_null(), orig);
|
||||
stripped.swizzle = ins->src[src].swizzle;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue