summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
3d9c673)
Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5956>
dstreg dstregion writemask reg_type
{
$$ = $1;
dstreg dstregion writemask reg_type
{
$$ = $1;
-
- if ($2 == -1) {
- $$.hstride = BRW_HORIZONTAL_STRIDE_1;
- $$.vstride = BRW_VERTICAL_STRIDE_1;
- $$.width = BRW_WIDTH_1;
- } else {
- $$.hstride = $2;
- }
+ $$.vstride = BRW_VERTICAL_STRIDE_1;
+ $$.width = BRW_WIDTH_1;
+ $$.hstride = $2;
$$.type = $4;
$$.writemask = $3;
$$.swizzle = BRW_SWIZZLE_NOOP;
$$.type = $4;
$$.writemask = $3;
$$.swizzle = BRW_SWIZZLE_NOOP;
| nullreg dstregion writemask reg_type
{
$$ = $1;
| nullreg dstregion writemask reg_type
{
$$ = $1;
- if ($2 == -1) {
- $$.hstride = BRW_HORIZONTAL_STRIDE_1;
- $$.vstride = BRW_VERTICAL_STRIDE_1;
- $$.width = BRW_WIDTH_1;
- } else {
- $$.hstride = $2;
- }
+ $$.vstride = BRW_VERTICAL_STRIDE_1;
+ $$.width = BRW_WIDTH_1;
+ $$.hstride = $2;
$$.writemask = $3;
$$.type = $4;
}
$$.writemask = $3;
$$.type = $4;
}
+ %empty
+ {
+ $$ = BRW_HORIZONTAL_STRIDE_1;
+ }
| LANGLE exp RANGLE
{
if ($2 != 0 && ($2 > 4 || !isPowerofTwo($2)))
| LANGLE exp RANGLE
{
if ($2 != 0 && ($2 > 4 || !isPowerofTwo($2)))