{"noopt", FD_DBG_NOOPT , "Disable optimization passes in compiler"},
{"optmsgs", FD_DBG_OPTMSGS,"Enable optimizater debug messages"},
{"optdump", FD_DBG_OPTDUMP,"Dump shader DAG to .dot files"},
+ {"glsl130", FD_DBG_GLSL130,"Temporary flag to enable GLSL 130 on a3xx+"},
DEBUG_NAMED_VALUE_END
};
int fd_mesa_debug = 0;
bool fd_binning_enabled = true;
+static bool glsl130 = false;
static const char *
fd_screen_get_name(struct pipe_screen *pscreen)
return 256;
case PIPE_CAP_GLSL_FEATURE_LEVEL:
- return 120;
+ return ((screen->gpu_id >= 300) && glsl130) ? 130 : 120;
/* Unsupported features. */
case PIPE_CAP_INDEP_BLEND_ENABLE:
case PIPE_CAP_QUERY_TIMESTAMP:
return 0;
case PIPE_CAP_OCCLUSION_QUERY:
- return (screen->gpu_id >= 300) ? 1: 0;
+ return (screen->gpu_id >= 300) ? 1 : 0;
case PIPE_CAP_MIN_TEXTURE_GATHER_OFFSET:
case PIPE_CAP_MIN_TEXEL_OFFSET:
/* we should be able to support this on a3xx, but not
* implemented yet:
*/
- return 0;
+ return ((screen->gpu_id >= 300) && glsl130) ? 1 : 0;
case PIPE_SHADER_CAP_MAX_TEXTURE_SAMPLERS:
case PIPE_SHADER_CAP_MAX_SAMPLER_VIEWS:
return 16;
if (fd_mesa_debug & FD_DBG_NOBIN)
fd_binning_enabled = false;
+ glsl130 = !!(fd_mesa_debug & FD_DBG_GLSL130);
+
if (!screen)
return NULL;