Module: Mesa
Branch: main
Commit: 81ebb6a10af856760d9117c1f78a0715382687ae
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=81ebb6a10af856760d9117c1f78a0715382687ae

Author: Kenneth Graunke <kenn...@whitecape.org>
Date:   Mon Nov 20 17:45:02 2023 -0800

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.so...@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25447>

---

 src/gallium/drivers/iris/i915/iris_kmd_backend.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/drivers/iris/i915/iris_kmd_backend.c 
b/src/gallium/drivers/iris/i915/iris_kmd_backend.c
index 1a188f4efc1..c70742105d0 100644
--- a/src/gallium/drivers/iris/i915/iris_kmd_backend.c
+++ b/src/gallium/drivers/iris/i915/iris_kmd_backend.c
@@ -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 */

Reply via email to