iris: Drop usage of i915 EXEC_OBJECT_WRITE
The whole usage of this flag is to call iris_use_pinned_bo() with writable argument, for that we don't need any i915_drm.h specific type. IRIS_BLORP_RELOC_FLAGS_EXEC_OBJECT_WRITE could have any other value but keeping the same as i915_drm.h. With this we can drop 2 i915_drm.h imports from generic Iris code. Signed-off-by: José Roberto de Souza <jose.souza@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21887>
This commit is contained in:

committed by
Marge Bot

parent
660877cf38
commit
631756db56
@@ -92,7 +92,8 @@ combine_and_pin_address(struct blorp_batch *blorp_batch,
|
||||
struct iris_batch *batch = blorp_batch->driver_batch;
|
||||
struct iris_bo *bo = addr.buffer;
|
||||
|
||||
iris_use_pinned_bo(batch, bo, addr.reloc_flags & RELOC_WRITE,
|
||||
iris_use_pinned_bo(batch, bo,
|
||||
addr.reloc_flags & IRIS_BLORP_RELOC_FLAGS_EXEC_OBJECT_WRITE,
|
||||
IRIS_DOMAIN_NONE);
|
||||
|
||||
/* Assume this is a general address, not relative to a base. */
|
||||
|
Reference in New Issue
Block a user