From: Eric Anholt Date: Sat, 6 Aug 2011 02:40:46 +0000 (-0700) Subject: i965/vs: Add support for dot product opcodes. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c3752b399ab376aa53392afb8f2d4b526054f0a8;p=mesa.git i965/vs: Add support for dot product opcodes. Fixes glsl-vs-dot-vec2. --- diff --git a/src/mesa/drivers/dri/i965/brw_vec4_emit.cpp b/src/mesa/drivers/dri/i965/brw_vec4_emit.cpp index a41c58c7d52..71caf907b38 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4_emit.cpp +++ b/src/mesa/drivers/dri/i965/brw_vec4_emit.cpp @@ -447,6 +447,18 @@ vec4_visitor::generate_code() brw_SEL(p, dst, src[0], src[1]); break; + case BRW_OPCODE_DP4: + brw_DP4(p, dst, src[0], src[1]); + break; + + case BRW_OPCODE_DP3: + brw_DP3(p, dst, src[0], src[1]); + break; + + case BRW_OPCODE_DP2: + brw_DP2(p, dst, src[0], src[1]); + break; + case BRW_OPCODE_IF: if (inst->src[0].file != BAD_FILE) { /* The instruction has an embedded compare (only allowed on gen6) */