radeon/r600: Fix remaining warnings when building 64 bit binary.
[mesa.git] / src / mesa / shader / program_parse_extra.c
index b365267d4d74702ac2e9dcb5c693b2d64771585d..8e4be606f1695be49ecf1749e582ac448f9b0343 100644 (file)
@@ -91,17 +91,25 @@ _mesa_ARBfp_parse_option(struct asm_parser_state *state, const char *option)
 
         return 0;
       } else if (strcmp(option, "draw_buffers") == 0) {
-        /* FINISHME: This should validate that the driver support the
-         * FINISHME: GL_ARB_draw_buffers extension.
+        /* Don't need to check extension availability because all Mesa-based
+         * drivers support GL_ARB_draw_buffers.
          */
         state->option.DrawBuffers = 1;
         return 1;
       } else if (strcmp(option, "fragment_program_shadow") == 0) {
-        /* FINISHME: This should validate that the driver support the
-         * FINISHME: GL_ARB_fragment_program_shadow extension.
-         */
-        state->option.Shadow = 1;
-        return 1;
+        if (state->ctx->Extensions.ARB_fragment_program_shadow) {
+           state->option.Shadow = 1;
+           return 1;
+        }
+      }
+   } else if (strncmp(option, "MESA_", 5) == 0) {
+      option += 5;
+
+      if (strcmp(option, "texture_array") == 0) {
+        if (state->ctx->Extensions.MESA_texture_array) {
+           state->option.TexArray = 1;
+           return 1;
+        }
       }
    }