[Mesa-dev] [PATCH 14/17] r600g: Enable ARB_framebuffer_no_attachments

Edward O'Callaghan eocallaghan at alterapraxis.com
Sat Mar 19 06:41:27 UTC 2016


Signed-off-by: Edward O'Callaghan <eocallaghan at alterapraxis.com>
---
 src/gallium/drivers/r600/r600_pipe.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/gallium/drivers/r600/r600_pipe.c b/src/gallium/drivers/r600/r600_pipe.c
index 0d22faa..96c0382 100644
--- a/src/gallium/drivers/r600/r600_pipe.c
+++ b/src/gallium/drivers/r600/r600_pipe.c
@@ -369,7 +369,6 @@ static int r600_get_param(struct pipe_screen* pscreen, enum pipe_cap param)
 	case PIPE_CAP_GENERATE_MIPMAP:
 	case PIPE_CAP_STRING_MARKER:
 	case PIPE_CAP_QUERY_BUFFER_OBJECT:
-	case PIPE_CAP_MSAA_MODES:
 		return 0;
 
 	case PIPE_CAP_MAX_SHADER_PATCH_VARYINGS:
@@ -411,6 +410,9 @@ static int r600_get_param(struct pipe_screen* pscreen, enum pipe_cap param)
 		/* textures support 8192, but layered rendering supports 2048 */
 		return 2048;
 
+	case PIPE_CAP_MSAA_MODES:
+		return (1 << 5) | (1 << 4) | (1 << 3) | (1 << 2) | (1 << 1);
+
 	/* Render targets. */
 	case PIPE_CAP_MAX_RENDER_TARGETS:
 		/* XXX some r6xx are buggy and can only do 4 */
-- 
2.5.0



More information about the mesa-dev mailing list