summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/intel_screen.c
diff options
context:
space:
mode:
authorTopi Pohjolainen <[email protected]>2013-06-18 13:47:43 +0300
committerTopi Pohjolainen <[email protected]>2013-08-02 08:56:03 +0300
commit3a52cd351af6ad834fa6205ec03a82559d1cea92 (patch)
tree6537adb4d0aa12d14576e52ec22c94208cbdc517 /src/mesa/drivers/dri/i965/intel_screen.c
parent0de013b61930505bbeaf094d079b566df18a0cf7 (diff)
intel: restrict dma-buf-import images to external sampling only
Memory originating outside mesa stack is meant to be for reading only. In addition, the restrictions imposed by the image external extension should apply. For example, users shouldn't be allowed to generare mip-trees based on these images. v2 (Chad): document using full extension names, fix the comment style itself and emit description of error Signed-off-by: Topi Pohjolainen <[email protected]> Reviewed-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/intel_screen.c')
-rw-r--r--src/mesa/drivers/dri/i965/intel_screen.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_screen.c b/src/mesa/drivers/dri/i965/intel_screen.c
index 12a96c03f73..4ee86026574 100644
--- a/src/mesa/drivers/dri/i965/intel_screen.c
+++ b/src/mesa/drivers/dri/i965/intel_screen.c
@@ -719,6 +719,7 @@ intel_create_image_from_dma_bufs(__DRIscreen *screen,
return NULL;
}
+ image->dma_buf_imported = true;
image->yuv_color_space = yuv_color_space;
image->sample_range = sample_range;
image->horizontal_siting = horizontal_siting;