radeonsi: Enable NPOT textures again.
authorMichel Dänzer <michel.daenzer@amd.com>
Wed, 5 Sep 2012 16:27:02 +0000 (18:27 +0200)
committerMichel Dänzer <michel@daenzer.net>
Thu, 6 Sep 2012 13:39:20 +0000 (15:39 +0200)
Should be at least mostly working now (with the corresponding fixes in
libdrm_radeon).

Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
src/gallium/drivers/radeonsi/radeonsi_pipe.c

index f3914d736f6609ae883a40d15ce6f117621cbc8e..9d7ac51ef2f7bd136d1548d570e601e09054be7d 100644 (file)
@@ -323,6 +323,7 @@ static int r600_get_param(struct pipe_screen* pscreen, enum pipe_cap param)
        case PIPE_CAP_USER_INDEX_BUFFERS:
        case PIPE_CAP_USER_CONSTANT_BUFFERS:
        case PIPE_CAP_START_INSTANCE:
+       case PIPE_CAP_NPOT_TEXTURES:
                return 1;
 
        case PIPE_CAP_CONSTANT_BUFFER_OFFSET_ALIGNMENT:
@@ -332,7 +333,6 @@ static int r600_get_param(struct pipe_screen* pscreen, enum pipe_cap param)
                return debug_get_bool_option("R600_GLSL130", FALSE) ? 130 : 120;
 
        /* Unsupported features. */
-       case PIPE_CAP_NPOT_TEXTURES:
        case PIPE_CAP_TGSI_INSTANCEID:
        case PIPE_CAP_TGSI_FS_COORD_ORIGIN_LOWER_LEFT:
        case PIPE_CAP_TGSI_FS_COORD_PIXEL_CENTER_INTEGER: