[Mesa-dev] [PATCH 21/21] radeonsi: enable ARB_sparse_buffer

Nicolai Hähnle nhaehnle at gmail.com
Wed Feb 8 12:43:03 UTC 2017


From: Nicolai Hähnle <nicolai.haehnle at amd.com>

TODO add features.txt and ChangeLog
---
 src/gallium/drivers/radeonsi/si_pipe.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c
index 8ce4d50..e8edf4d 100644
--- a/src/gallium/drivers/radeonsi/si_pipe.c
+++ b/src/gallium/drivers/radeonsi/si_pipe.c
@@ -458,6 +458,12 @@ static int si_get_param(struct pipe_screen* pscreen, enum pipe_cap param)
 	case PIPE_CAP_BUFFER_SAMPLER_VIEW_RGBA_ONLY:
 		return 0;
 
+	case PIPE_CAP_SPARSE_BUFFER_PAGE_SIZE:
+		if (sscreen->b.info.drm_major == 3 /* &&
+		    sscreen->b.info.drm_major >= TODO */)
+			return RADEON_SPARSE_PAGE_SIZE;
+		return 0;
+
 	/* Unsupported features. */
 	case PIPE_CAP_TGSI_FS_COORD_ORIGIN_LOWER_LEFT:
 	case PIPE_CAP_TGSI_CAN_COMPACT_CONSTANTS:
-- 
2.9.3



More information about the mesa-dev mailing list