From a62cd6949cee46096e016ef8249a4a6975d63c4a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Sat, 21 Sep 2013 19:45:08 +0200 Subject: [PATCH] radeon drivers: handle PIPE_CAP_MAX_VIEWPORTS --- src/gallium/drivers/r300/r300_screen.c | 3 +++ src/gallium/drivers/r600/r600_pipe.c | 3 +++ src/gallium/drivers/radeonsi/radeonsi_pipe.c | 3 +++ 3 files changed, 9 insertions(+) diff --git a/src/gallium/drivers/r300/r300_screen.c b/src/gallium/drivers/r300/r300_screen.c index 125a1b59520..dd036fcd837 100644 --- a/src/gallium/drivers/r300/r300_screen.c +++ b/src/gallium/drivers/r300/r300_screen.c @@ -192,6 +192,9 @@ static int r300_get_param(struct pipe_screen* pscreen, enum pipe_cap param) return 4; case PIPE_CAP_ENDIANNESS: return PIPE_ENDIAN_LITTLE; + + case PIPE_CAP_MAX_VIEWPORTS: + return 1; } return 0; } diff --git a/src/gallium/drivers/r600/r600_pipe.c b/src/gallium/drivers/r600/r600_pipe.c index d86bb18034a..67767d4b449 100644 --- a/src/gallium/drivers/r600/r600_pipe.c +++ b/src/gallium/drivers/r600/r600_pipe.c @@ -651,6 +651,9 @@ static int r600_get_param(struct pipe_screen* pscreen, enum pipe_cap param) /* XXX some r6xx are buggy and can only do 4 */ return 8; + case PIPE_CAP_MAX_VIEWPORTS: + return 1; + /* Timer queries, present when the clock frequency is non zero. */ case PIPE_CAP_QUERY_TIME_ELAPSED: return rscreen->b.info.r600_clock_crystal_freq != 0; diff --git a/src/gallium/drivers/radeonsi/radeonsi_pipe.c b/src/gallium/drivers/radeonsi/radeonsi_pipe.c index 16ec51fa63b..814f16b0275 100644 --- a/src/gallium/drivers/radeonsi/radeonsi_pipe.c +++ b/src/gallium/drivers/radeonsi/radeonsi_pipe.c @@ -438,6 +438,9 @@ static int r600_get_param(struct pipe_screen* pscreen, enum pipe_cap param) /* FIXME some r6xx are buggy and can only do 4 */ return 8; + case PIPE_CAP_MAX_VIEWPORTS: + return 1; + /* Timer queries, present when the clock frequency is non zero. */ case PIPE_CAP_QUERY_TIMESTAMP: case PIPE_CAP_QUERY_TIME_ELAPSED: -- 2.30.2