aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys/drm/intel
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2009-03-03 12:11:08 +0000
committerKeith Whitwell <[email protected]>2009-03-03 12:11:08 +0000
commit0f3d226143d21b60cba63b8234340ae31d6d7281 (patch)
treede0e76743d4d2b124505c2f2becf540a71e9b9fb /src/gallium/winsys/drm/intel
parent9a9dc422b0c491f516fd8d80e0ce128e4145698f (diff)
winsys: return null for DONTBLOCK flag on existing winsys
Add code so that existing driver behaviour doesn't change.
Diffstat (limited to 'src/gallium/winsys/drm/intel')
-rw-r--r--src/gallium/winsys/drm/intel/gem/intel_be_device.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/winsys/drm/intel/gem/intel_be_device.c b/src/gallium/winsys/drm/intel/gem/intel_be_device.c
index 595de447267..2e191a6d126 100644
--- a/src/gallium/winsys/drm/intel/gem/intel_be_device.c
+++ b/src/gallium/winsys/drm/intel/gem/intel_be_device.c
@@ -26,6 +26,12 @@ intel_be_buffer_map(struct pipe_winsys *winsys,
int write = 0;
int ret;
+ if (flags & PIPE_BUFFER_USAGE_DONTBLOCK) {
+ /* Remove this when drm_intel_bo_map supports DONTBLOCK
+ */
+ return NULL;
+ }
+
if (flags & PIPE_BUFFER_USAGE_CPU_WRITE)
write = 1;