diff options
author | Eric Anholt <eric@anholt.net> | 2010-07-02 16:17:50 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2010-07-02 17:06:23 -0700 |
commit | 4e7d5d0e74c26cac182cea1be0f6b79bb664ad8c (patch) | |
tree | c71ecff054e381538c1c136f41c46f65f0aa2e43 /src/mesa/drivers/dri/i965/brw_wm.h | |
parent | 8f25d198e54a117b36e68582977a644d085a4a94 (diff) |
i965: Add support for the DP2 opcode, which we use for dot(vec2, vec2).
The original glsl compiler would generate a.x * b.x + a.y * b.y, which
we would do mul+mul+add for instead of this mul+mac.
Fixes glsl-fs-dot-vec2.
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_wm.h')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_wm.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_wm.h b/src/mesa/drivers/dri/i965/brw_wm.h index 938557ff36..197b875434 100644 --- a/src/mesa/drivers/dri/i965/brw_wm.h +++ b/src/mesa/drivers/dri/i965/brw_wm.h @@ -343,6 +343,11 @@ void emit_delta_xy(struct brw_compile *p, const struct brw_reg *dst, GLuint mask, const struct brw_reg *arg0); +void emit_dp2(struct brw_compile *p, + const struct brw_reg *dst, + GLuint mask, + const struct brw_reg *arg0, + const struct brw_reg *arg1); void emit_dp3(struct brw_compile *p, const struct brw_reg *dst, GLuint mask, |