mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-30 14:20:11 +01:00
intel/tools: Pass integers, not enums, to stride()
Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5956>
This commit is contained in:
parent
c883c482be
commit
af6d6f5c43
1 changed files with 4 additions and 3 deletions
|
|
@ -1938,14 +1938,14 @@ indirectregion:
|
|||
region:
|
||||
%empty
|
||||
{
|
||||
$$ = stride($$, BRW_VERTICAL_STRIDE_1, BRW_WIDTH_2, BRW_HORIZONTAL_STRIDE_1);
|
||||
$$ = stride($$, 0, 1, 0);
|
||||
}
|
||||
| LANGLE exp RANGLE
|
||||
{
|
||||
if ($2 != 0 && ($2 > 32 || !isPowerofTwo($2)))
|
||||
error(&@2, "Invalid VertStride %d\n", $2);
|
||||
|
||||
$$ = stride($$, $2, BRW_WIDTH_1, 0);
|
||||
$$ = stride($$, $2, 1, 0);
|
||||
}
|
||||
| LANGLE exp COMMA exp COMMA exp RANGLE
|
||||
{
|
||||
|
|
@ -1999,7 +1999,8 @@ region_wh:
|
|||
error(&@4, "Invalid Horizontal stride in"
|
||||
" region_wh %d\n", $4);
|
||||
|
||||
$$ = stride($$, BRW_VERTICAL_STRIDE_ONE_DIMENSIONAL, $2, $4);
|
||||
$$ = stride($$, 0, $2, $4);
|
||||
$$.vstride = BRW_VERTICAL_STRIDE_ONE_DIMENSIONAL;
|
||||
}
|
||||
;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue