mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 02:38:04 +02:00
iris: Rename heap_flags -> heap in i915_gem_create
The heap is not a bitfield of flags, it's an enum of exclusive choices. Reviewed-by: José Roberto de Souza <jose.souza@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25447>
This commit is contained in:
parent
7a67ea0a6e
commit
81ebb6a10a
1 changed files with 2 additions and 2 deletions
|
|
@ -53,7 +53,7 @@ static uint32_t
|
|||
i915_gem_create(struct iris_bufmgr *bufmgr,
|
||||
const struct intel_memory_class_instance **regions,
|
||||
uint16_t regions_count, uint64_t size,
|
||||
enum iris_heap heap_flags, unsigned alloc_flags)
|
||||
enum iris_heap heap, unsigned alloc_flags)
|
||||
{
|
||||
const struct intel_device_info *devinfo =
|
||||
iris_bufmgr_get_device_info(bufmgr);
|
||||
|
|
@ -94,7 +94,7 @@ i915_gem_create(struct iris_bufmgr *bufmgr,
|
|||
|
||||
if (iris_bufmgr_vram_size(bufmgr) > 0 &&
|
||||
!intel_vram_all_mappable(devinfo) &&
|
||||
heap_flags == IRIS_HEAP_DEVICE_LOCAL_PREFERRED)
|
||||
heap == IRIS_HEAP_DEVICE_LOCAL_PREFERRED)
|
||||
create.flags |= I915_GEM_CREATE_EXT_FLAG_NEEDS_CPU_ACCESS;
|
||||
|
||||
/* Protected param */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue