diff options
author | Marek Olšák <maraeo@gmail.com> | 2011-03-05 17:37:15 +0100 |
---|---|---|
committer | Marek Olšák <maraeo@gmail.com> | 2011-03-05 17:41:12 +0100 |
commit | b6a9675b2fb917b88b08e0b0a3f1d100a39df6fb (patch) | |
tree | f952b1b62dbc149f15343ee87da749c89573ac37 /src/gallium | |
parent | 65482f2c2b1c3456d0ca58a38d82c02a5d6d362c (diff) |
r300g/swtcl: advertise draw_instanced and primitive_restart
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/r300/r300_screen.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gallium/drivers/r300/r300_screen.c b/src/gallium/drivers/r300/r300_screen.c index 6c0dc99dd74..d881a0f3c87 100644 --- a/src/gallium/drivers/r300/r300_screen.c +++ b/src/gallium/drivers/r300/r300_screen.c @@ -125,11 +125,14 @@ static int r300_get_param(struct pipe_screen* pscreen, enum pipe_cap param) case PIPE_CAP_DEPTH_CLAMP: case PIPE_CAP_DEPTHSTENCIL_CLEAR_SEPARATE: case PIPE_CAP_SHADER_STENCIL_EXPORT: + case PIPE_CAP_ARRAY_TEXTURES: + return 0; + + /* SWTCL-only features. */ case PIPE_CAP_STREAM_OUTPUT: case PIPE_CAP_PRIMITIVE_RESTART: case PIPE_CAP_TGSI_INSTANCEID: - case PIPE_CAP_ARRAY_TEXTURES: - return 0; + return !r300screen->caps.has_tcl; /* Texturing. */ case PIPE_CAP_MAX_TEXTURE_IMAGE_UNITS: |