mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 20:38:06 +02:00
i965: Avoid vs header computation for negative rhw on G4X.
This cuts one MOV out when setting a zero header.
This commit is contained in:
parent
34b1776e8d
commit
9fd4c27ae3
1 changed files with 3 additions and 3 deletions
|
|
@ -829,12 +829,12 @@ static void emit_vertex_write( struct brw_vs_compile *c)
|
|||
ndc = pos;
|
||||
}
|
||||
|
||||
/* This includes the workaround for -ve rhw, so is no longer an
|
||||
* optional step:
|
||||
/* Update the header for point size, user clipping flags, and -ve rhw
|
||||
* workaround.
|
||||
*/
|
||||
if ((c->prog_data.outputs_written & (1<<VERT_RESULT_PSIZ)) ||
|
||||
c->key.nr_userclip ||
|
||||
!c->key.know_w_is_one)
|
||||
(!BRW_IS_G4X(p->brw) && !c->key.know_w_is_one))
|
||||
{
|
||||
struct brw_reg header1 = retype(get_tmp(c), BRW_REGISTER_TYPE_UD);
|
||||
GLuint i;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue