SWDEV-547291 - Interop for OpenGL (#2350)

Updated to convert flags correctly

Added ObjectRegistry to track registered and mapped resources and incorporated it into hip_gl.

Added mip level check

Made functions static in-line

Reworked validation to be more clear.
This commit is contained in:
Sam Ruscica
2026-01-21 12:08:55 -05:00
committed by GitHub
parent c563286f96
commit 5daeb14582
13 changed files with 315 additions and 57 deletions
+4 -4
View File
@@ -1446,12 +1446,12 @@ void __hipGetPCH(const char** pch, unsigned int* size);
*/
typedef enum hipGraphicsRegisterFlags {
hipGraphicsRegisterFlagsNone = 0,
hipGraphicsRegisterFlagsReadOnly = 1, ///< HIP will not write to this registered resource
hipGraphicsRegisterFlagsReadOnly = 1, ///< HIP will not write to this registered resource, read only
hipGraphicsRegisterFlagsWriteDiscard =
2, ///< HIP will only write and will not read from this registered resource
hipGraphicsRegisterFlagsSurfaceLoadStore = 4, ///< HIP will bind this resource to a surface
2, ///< HIP will only write and will not read from this registered resource, write only
hipGraphicsRegisterFlagsSurfaceLoadStore = 4, ///< HIP will bind this resource to a surface, read and write
hipGraphicsRegisterFlagsTextureGather =
8 ///< HIP will perform texture gather operations on this registered resource
8 ///< HIP will perform texture gather operations on this registered resource, read and write or read only
} hipGraphicsRegisterFlags;
typedef struct _hipGraphicsResource hipGraphicsResource;