summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2015-02-10 16:02:54 +0100
committerMarek Olšák <[email protected]>2015-02-17 17:31:48 +0100
commit7713d594e4fbb9afb1ac67417b7871d436590548 (patch)
tree4e91727d2ed647d20b6e20cef6119139ce469f08 /src/gallium/drivers/r600
parentc688988b0d68ffee2d8f1d64b0d402e23e8ce49e (diff)
r600g,radeonsi: implement GL_AMD_pinned_memory
v2: update release notes Reviewed-by: Christian König <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600')
-rw-r--r--src/gallium/drivers/r600/r600_pipe.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_pipe.c b/src/gallium/drivers/r600/r600_pipe.c
index 60bed0e65f2..a4b7b66ace1 100644
--- a/src/gallium/drivers/r600/r600_pipe.c
+++ b/src/gallium/drivers/r600/r600_pipe.c
@@ -270,6 +270,9 @@ static int r600_get_param(struct pipe_screen* pscreen, enum pipe_cap param)
case PIPE_CAP_POLYGON_OFFSET_CLAMP:
return 1;
+ case PIPE_CAP_RESOURCE_FROM_USER_MEMORY:
+ return !R600_BIG_ENDIAN && rscreen->b.info.has_userptr;
+
case PIPE_CAP_COMPUTE:
return rscreen->b.chip_class > R700;