diff options
author | Marek Olšák <[email protected]> | 2011-09-04 04:41:52 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2011-09-10 08:53:29 +0200 |
commit | b37931f69b7885ec9cdcaea8aec10db777d7e60a (patch) | |
tree | d7376875ed4d8ad5392690d3e0680a4139ea5e76 /src | |
parent | 929ad43b11cfc24f3e27bc1da2523b7fc142917f (diff) |
r600g: enable texture arrays
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/r600/r600_pipe.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/r600/r600_pipe.c b/src/gallium/drivers/r600/r600_pipe.c index cfbeae5a4fa..a3fc61822e7 100644 --- a/src/gallium/drivers/r600/r600_pipe.c +++ b/src/gallium/drivers/r600/r600_pipe.c @@ -380,9 +380,6 @@ static int r600_get_param(struct pipe_screen* pscreen, enum pipe_cap param) case PIPE_CAP_TGSI_FS_COORD_PIXEL_CENTER_INTEGER: return 0; - case PIPE_CAP_MAX_TEXTURE_ARRAY_LAYERS: - return 0; /* will be re-enabled in the following commits. */ - /* Texturing. */ case PIPE_CAP_MAX_TEXTURE_2D_LEVELS: case PIPE_CAP_MAX_TEXTURE_3D_LEVELS: @@ -391,6 +388,9 @@ static int r600_get_param(struct pipe_screen* pscreen, enum pipe_cap param) return 15; else return 14; + case PIPE_CAP_MAX_TEXTURE_ARRAY_LAYERS: + return r600_get_minor_version(rscreen->radeon) >= 9 ? + (family >= CHIP_CEDAR ? 16384 : 8192) : 0; case PIPE_CAP_MAX_VERTEX_TEXTURE_UNITS: case PIPE_CAP_MAX_TEXTURE_IMAGE_UNITS: return 16; |