Fix horizontal stride translation.

This commit is contained in:
Eric Anholt 2006-08-22 13:08:26 -07:00 committed by Damien Lespiau
parent f2f18561e5
commit d4c82e8278
2 changed files with 2 additions and 2 deletions

View File

@ -979,7 +979,7 @@ case 52:
{ {
yyval.region.vert_stride = ffs(yyvsp[-5].integer); yyval.region.vert_stride = ffs(yyvsp[-5].integer);
yyval.region.width = ffs(yyvsp[-3].integer) - 1; yyval.region.width = ffs(yyvsp[-3].integer) - 1;
yyval.region.horiz_stride = ffs(yyvsp[-1].integer) - 1; yyval.region.horiz_stride = ffs(yyvsp[-1].integer);
} }
break; break;
case 53: case 53:

View File

@ -413,7 +413,7 @@ region: LANGLE INTEGER COMMA INTEGER COMMA INTEGER RANGLE
{ {
$$.vert_stride = ffs($2); $$.vert_stride = ffs($2);
$$.width = ffs($4) - 1; $$.width = ffs($4) - 1;
$$.horiz_stride = ffs($6) - 1; $$.horiz_stride = ffs($6);
} }
; ;