anv: Return earlier in anv_gem_get_tiling() when not supported
Tiling set and get UAPIs has the same support level. Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Signed-off-by: José Roberto de Souza <jose.souza@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18251>
This commit is contained in:

committed by
Marge Bot

parent
e9cba466ea
commit
1de5d2ac01
@@ -230,6 +230,9 @@ anv_gem_execbuffer(struct anv_device *device,
|
||||
int
|
||||
anv_gem_get_tiling(struct anv_device *device, uint32_t gem_handle)
|
||||
{
|
||||
if (!device->info->has_tiling_uapi)
|
||||
return -1;
|
||||
|
||||
struct drm_i915_gem_get_tiling get_tiling = {
|
||||
.handle = gem_handle,
|
||||
};
|
||||
|
Reference in New Issue
Block a user