mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
gallium/radeon: disallow handle export for MSAA & depth textures
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com> Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
parent
d95f593758
commit
d4e847ea33
1 changed files with 7 additions and 0 deletions
|
|
@ -259,6 +259,13 @@ static boolean r600_texture_get_handle(struct pipe_screen* screen,
|
|||
struct r600_texture *rtex = (struct r600_texture*)resource;
|
||||
struct radeon_bo_metadata metadata;
|
||||
|
||||
/* This is not supported now, but it might be required for OpenCL
|
||||
* interop in the future.
|
||||
*/
|
||||
if (resource->target != PIPE_BUFFER &&
|
||||
(resource->nr_samples > 1 || rtex->is_depth))
|
||||
return NULL;
|
||||
|
||||
if (!res->is_shared) {
|
||||
res->is_shared = true;
|
||||
res->external_usage = usage;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue