mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 02:58:05 +02:00
i965: Clarify that DELTAXY always occurs for both X and Y.
This commit is contained in:
parent
46450c1f3f
commit
f4f2737e87
1 changed files with 13 additions and 14 deletions
|
|
@ -125,23 +125,22 @@ void emit_delta_xy(struct brw_compile *p,
|
|||
{
|
||||
struct brw_reg r1 = brw_vec1_grf(1, 0);
|
||||
|
||||
if (mask == 0)
|
||||
return;
|
||||
|
||||
assert(mask == WRITEMASK_XY);
|
||||
|
||||
/* Calc delta X,Y by subtracting origin in r1 from the pixel
|
||||
* centers.
|
||||
*/
|
||||
if (mask & WRITEMASK_X) {
|
||||
brw_ADD(p,
|
||||
dst[0],
|
||||
retype(arg0[0], BRW_REGISTER_TYPE_UW),
|
||||
negate(r1));
|
||||
}
|
||||
|
||||
if (mask & WRITEMASK_Y) {
|
||||
brw_ADD(p,
|
||||
dst[1],
|
||||
retype(arg0[1], BRW_REGISTER_TYPE_UW),
|
||||
negate(suboffset(r1,1)));
|
||||
|
||||
}
|
||||
brw_ADD(p,
|
||||
dst[0],
|
||||
retype(arg0[0], BRW_REGISTER_TYPE_UW),
|
||||
negate(r1));
|
||||
brw_ADD(p,
|
||||
dst[1],
|
||||
retype(arg0[1], BRW_REGISTER_TYPE_UW),
|
||||
negate(suboffset(r1,1)));
|
||||
}
|
||||
|
||||
void emit_wpos_xy(struct brw_wm_compile *c,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue