OSDN Git Service

i965: Flag ARL-using programs as requiring brw_wm_glsl.c
authorEric Anholt <eric@anholt.net>
Wed, 12 Aug 2009 18:36:07 +0000 (11:36 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 12 Aug 2009 19:43:42 +0000 (12:43 -0700)
This doesn't fix the glean testcase, but I guess it provides hope.

src/mesa/drivers/dri/i965/brw_wm_glsl.c

index 6a72685..7ff6125 100644 (file)
@@ -22,6 +22,7 @@ GLboolean brw_wm_is_glsl(const struct gl_fragment_program *fp)
     for (i = 0; i < fp->Base.NumInstructions; i++) {
        const struct prog_instruction *inst = &fp->Base.Instructions[i];
        switch (inst->Opcode) {
+           case OPCODE_ARL:
            case OPCODE_IF:
            case OPCODE_ENDIF:
            case OPCODE_CAL: