mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-21 13:23:02 +00:00
Add support for swizzle control on source operands.
This required restructuring to store source operands in a new structure rather than being stored in instructions, as swizzle is align16-only and shares storage with other fields for align1 mode. These changes were not tested on real programs using swizzle.
This commit is contained in:
committed by
Damien Lespiau
parent
2a0f135784
commit
6a88ada7e8
@@ -239,6 +239,24 @@ int saved_state = INITIAL;
|
||||
"signed" { return SIGNED; }
|
||||
"scalar" { return SCALAR; }
|
||||
|
||||
/* channel selectors */
|
||||
"x" {
|
||||
yylval.integer = BRW_CHANNEL_X;
|
||||
return X;
|
||||
}
|
||||
"y" {
|
||||
yylval.integer = BRW_CHANNEL_Y;
|
||||
return Y;
|
||||
}
|
||||
"z" {
|
||||
yylval.integer = BRW_CHANNEL_Z;
|
||||
return Z;
|
||||
}
|
||||
"w" {
|
||||
yylval.integer = BRW_CHANNEL_W;
|
||||
return W;
|
||||
}
|
||||
|
||||
[0-9]* {
|
||||
yylval.integer = atoi(yytext);
|
||||
return INTEGER;
|
||||
|
||||
Reference in New Issue
Block a user