mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-22 08:30:34 +01:00
iris: Add support to DRM_XE_GEM_CREATE_FLAG_NO_COMPRESSION
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/38425>
This commit is contained in:
parent
f91de58818
commit
f52af98dd8
1 changed files with 4 additions and 0 deletions
|
|
@ -72,6 +72,10 @@ xe_gem_create(struct iris_bufmgr *bufmgr,
|
|||
heap_flags == IRIS_HEAP_DEVICE_LOCAL_CPU_VISIBLE_SMALL_BAR))
|
||||
flags |= DRM_XE_GEM_CREATE_FLAG_NEEDS_VISIBLE_VRAM;
|
||||
|
||||
if (iris_heap_is_compressed(heap_flags) == false &&
|
||||
iris_bufmgr_get_device_info(bufmgr)->xe2_has_no_compression_hint)
|
||||
flags |= DRM_XE_GEM_CREATE_FLAG_NO_COMPRESSION;
|
||||
|
||||
struct drm_xe_gem_create gem_create = {
|
||||
.vm_id = vm_id,
|
||||
.size = align64(size, devinfo->mem_alignment),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue