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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user