From b6a9675b2fb917b88b08e0b0a3f1d100a39df6fb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Sat, 5 Mar 2011 17:37:15 +0100 Subject: [PATCH] r300g/swtcl: advertise draw_instanced and primitive_restart --- src/gallium/drivers/r300/r300_screen.c | 7 +++++-- 1 file 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: -- 2.30.2