radeonsi: handle unhandled CAPs
authorMarek Olšák <maraeo@gmail.com>
Thu, 11 Oct 2012 19:35:45 +0000 (21:35 +0200)
committerMarek Olšák <maraeo@gmail.com>
Thu, 11 Oct 2012 19:36:26 +0000 (21:36 +0200)
src/gallium/drivers/radeonsi/radeonsi_pipe.c

index dcdbe2ae1d80e9139f6c1015a3ce38145682185c..e069f1f2203b0dca03f5959d7c1b36dc6578d854 100644 (file)
@@ -344,6 +344,8 @@ static int r600_get_param(struct pipe_screen* pscreen, enum pipe_cap param)
        case PIPE_CAP_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION:
        case PIPE_CAP_USER_VERTEX_BUFFERS:
        case PIPE_CAP_TEXTURE_MULTISAMPLE:
+       case PIPE_CAP_COMPUTE:
+       case PIPE_CAP_QUERY_TIMESTAMP:
                return 0;
 
        /* Stream output. */
@@ -465,6 +467,8 @@ static int r600_get_shader_param(struct pipe_screen* pscreen, unsigned shader, e
                return 0;
        case PIPE_SHADER_CAP_MAX_TEXTURE_SAMPLERS:
                return 16;
+       case PIPE_SHADER_CAP_PREFERRED_IR:
+               return PIPE_SHADER_IR_TGSI;
        }
        return 0;
 }