mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-11 06:28:09 +02:00
i965: Don't compute-to-MRF in gen6 VS math.
There was code to do this for pre-gen6 already, this just enables it for gen6 as well.
This commit is contained in:
parent
720ed3c906
commit
17306c60ad
1 changed files with 15 additions and 7 deletions
|
|
@ -593,11 +593,15 @@ static void emit_math1( struct brw_vs_compile *c,
|
|||
struct brw_compile *p = &c->func;
|
||||
struct intel_context *intel = &p->brw->intel;
|
||||
struct brw_reg tmp = dst;
|
||||
GLboolean need_tmp = (intel->gen < 6 &&
|
||||
(dst.dw1.bits.writemask != 0xf ||
|
||||
dst.file != BRW_GENERAL_REGISTER_FILE));
|
||||
GLboolean need_tmp = GL_FALSE;
|
||||
|
||||
if (need_tmp)
|
||||
if (dst.file != BRW_GENERAL_REGISTER_FILE)
|
||||
need_tmp = GL_TRUE;
|
||||
|
||||
if (intel->gen < 6 && dst.dw1.bits.writemask != 0xf)
|
||||
need_tmp = GL_TRUE;
|
||||
|
||||
if (need_tmp)
|
||||
tmp = get_tmp(c);
|
||||
|
||||
brw_math(p,
|
||||
|
|
@ -626,9 +630,13 @@ static void emit_math2( struct brw_vs_compile *c,
|
|||
struct brw_compile *p = &c->func;
|
||||
struct intel_context *intel = &p->brw->intel;
|
||||
struct brw_reg tmp = dst;
|
||||
GLboolean need_tmp = (intel->gen < 6 &&
|
||||
(dst.dw1.bits.writemask != 0xf ||
|
||||
dst.file != BRW_GENERAL_REGISTER_FILE));
|
||||
GLboolean need_tmp = GL_FALSE;
|
||||
|
||||
if (dst.file != BRW_GENERAL_REGISTER_FILE)
|
||||
need_tmp = GL_TRUE;
|
||||
|
||||
if (intel->gen < 6 && dst.dw1.bits.writemask != 0xf)
|
||||
need_tmp = GL_TRUE;
|
||||
|
||||
if (need_tmp)
|
||||
tmp = get_tmp(c);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue