#include "../glsl/ir_optimization.h"
#include "../glsl/ir_print_visitor.h"
-static int using_new_fs = -1;
static struct brw_reg brw_reg_from_fs_reg(class fs_reg *reg);
struct gl_shader *
{
struct intel_context *intel = intel_context(ctx);
- if (using_new_fs == -1) {
- if (intel->gen >= 6)
- using_new_fs = 1;
- else
- using_new_fs = getenv("INTEL_NEW_FS") != NULL;
- }
-
for (unsigned i = 0; i < prog->_NumLinkedShaders; i++) {
struct brw_shader *shader = (struct brw_shader *)prog->_LinkedShaders[i];
- if (using_new_fs && shader->base.Type == GL_FRAGMENT_SHADER) {
+ if (shader->base.Type == GL_FRAGMENT_SHADER) {
void *mem_ctx = talloc_new(NULL);
bool progress;
if (!prog)
return GL_FALSE;
- if (!using_new_fs)
- return GL_FALSE;
-
for (unsigned int i = 0; i < prog->_NumLinkedShaders; i++) {
if (prog->_LinkedShaders[i]->Type == GL_FRAGMENT_SHADER) {
shader = (struct brw_shader *)prog->_LinkedShaders[i];