mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 07:58:07 +02:00
st/xorg: Brian suggested that those could be mad's
optimizes the common paths
This commit is contained in:
parent
b0c52e491d
commit
f1ce6b09cd
1 changed files with 2 additions and 4 deletions
|
|
@ -52,8 +52,7 @@ struct xorg_shaders {
|
|||
|
||||
static const char over_op[] =
|
||||
"SUB TEMP[3], CONST[0].wwww, TEMP[1].wwww\n"
|
||||
"MUL TEMP[3], TEMP[0], TEMP[3]\n"
|
||||
"ADD TEMP[0], TEMP[3], TEMP[0]\n";
|
||||
"MAD TEMP[3], TEMP[0], TEMP[3], TEMP[0]\n";
|
||||
|
||||
|
||||
static INLINE void
|
||||
|
|
@ -79,8 +78,7 @@ vs_normalize_coords(struct ureg_program *ureg, struct ureg_src coords,
|
|||
{
|
||||
struct ureg_dst tmp = ureg_DECL_temporary(ureg);
|
||||
struct ureg_src ret;
|
||||
ureg_MUL(ureg, tmp, coords, const0);
|
||||
ureg_ADD(ureg, tmp, ureg_src(tmp), const1);
|
||||
ureg_MAD(ureg, tmp, coords, const0, const1);
|
||||
ret = ureg_src(tmp);
|
||||
ureg_release_temporary(ureg, tmp);
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue