mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
cell: implement swizzling for src regs
This commit is contained in:
parent
6c0fa79857
commit
e8b199c6e3
1 changed files with 4 additions and 3 deletions
|
|
@ -137,11 +137,12 @@ get_src_reg(struct codegen *gen,
|
|||
const struct tgsi_full_src_register *src)
|
||||
{
|
||||
int reg;
|
||||
int swizzle = tgsi_util_get_full_src_register_extswizzle(src, channel);
|
||||
|
||||
/* XXX need to examine src swizzle info here.
|
||||
* That will involve changing the channel var...
|
||||
*/
|
||||
assert(swizzle >= 0);
|
||||
assert(swizzle <= 3);
|
||||
|
||||
channel = swizzle;
|
||||
|
||||
switch (src->SrcRegister.File) {
|
||||
case TGSI_FILE_TEMPORARY:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue