Mesa (master): i965: added OPCODE_NRM3/4

Brian Paul brianp at kemper.freedesktop.org
Thu Jan 1 13:07:00 PST 2009


Module: Mesa
Branch: master
Commit: 32e03c4a2ff5ef07de892dcd26f6be3b82ab3ba1
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=32e03c4a2ff5ef07de892dcd26f6be3b82ab3ba1

Author: Brian Paul <brianp at vmware.com>
Date:   Wed Dec 31 17:16:44 2008 -0700

i965: added OPCODE_NRM3/4

---

 src/mesa/drivers/dri/i965/brw_wm.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_wm.c b/src/mesa/drivers/dri/i965/brw_wm.c
index bad7679..5b4ee20 100644
--- a/src/mesa/drivers/dri/i965/brw_wm.c
+++ b/src/mesa/drivers/dri/i965/brw_wm.c
@@ -36,6 +36,7 @@
 #include "brw_state.h"
 
 
+/** Return number of src args for given instruction */
 GLuint brw_wm_nr_args( GLuint opcode )
 {
    switch (opcode) {
@@ -58,6 +59,8 @@ GLuint brw_wm_nr_args( GLuint opcode )
    case OPCODE_TXP:	
    case OPCODE_KIL:
    case OPCODE_LIT: 
+   case OPCODE_NRM3:
+   case OPCODE_NRM4:
    case WM_CINTERP: 
    case WM_WPOSXY: 
       return 1;



More information about the mesa-commit mailing list