freedreno/a4xx: re-enable int (conditional on glsl130)
authorRob Clark <robclark@freedesktop.org>
Fri, 27 Feb 2015 00:37:31 +0000 (19:37 -0500)
committerRob Clark <robclark@freedesktop.org>
Tue, 3 Mar 2015 15:41:00 +0000 (10:41 -0500)
Re-enable integer, now that we can handle flat varyings.  Still, ofc,
conditional on FD_MESA_DEBUG=glsl130, until we can deprecate _old
compiler..

Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/drivers/freedreno/freedreno_screen.c

index 29734585c0a530605772b6679a5a338a57b3cdf2..3e9a3f3b2f935f2dcf50234d8e13667f6fd4bc93 100644 (file)
@@ -372,7 +372,7 @@ fd_screen_get_shader_param(struct pipe_screen *pscreen, unsigned shader,
                 * TODO looks like a4xx will require some additional
                 * work for integer varying fetch..
                 */
-               return (is_a3xx(screen) && glsl130) ? 1 : 0;
+               return ((is_a3xx(screen) || is_a4xx(screen)) && glsl130) ? 1 : 0;
        case PIPE_SHADER_CAP_MAX_TEXTURE_SAMPLERS:
        case PIPE_SHADER_CAP_MAX_SAMPLER_VIEWS:
                return 16;