3631ab4d5f
SWDEV-86035 - Integrate PAL from //depot/stg/pal_prm/... up to interface version 262 pal_prm CL#1396811 Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/Makefile#34 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/inc/core/pal.h#24 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/inc/core/palCmdBuffer.h#21 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/inc/core/palCompoundState.h#6 delete ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/inc/core/palDeveloperHooks.h#10 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/inc/core/palDevice.h#29 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/inc/core/palGpuMemory.h#16 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/inc/core/palImage.h#14 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/inc/core/palLib.h#33 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/inc/core/palMsaaState.h#5 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/inc/core/palPerfExperiment.h#5 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/inc/core/palQueue.h#18 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/inc/core/palVideoDecoder.h#4 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/inc/core/palVideoEncoder.h#3 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/inc/gpuUtil/palGpaSession.h#14 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/inc/util/palElf.h#1 branch ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/inc/util/palElfProcessor.h#1 branch ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/inc/util/palElfProcessorImpl.h#1 branch ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/res/ver.h#30 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/CMakeLists.txt#1 branch ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/addrMgr/addrMgr1/addrMgr1.cpp#14 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/addrMgr/addrMgr2/addrMgr2.cpp#20 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/cmdBuffer.cpp#16 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/cmdBuffer.h#20 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/device.cpp#30 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/device.h#34 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/gpuMemory.cpp#19 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/gpuMemory.h#15 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/compoundState.cpp#5 delete ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/compoundState.h#5 delete ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/gfx6/gfx6Barrier.cpp#19 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/gfx6/gfx6CmdUtil.cpp#18 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/gfx6/gfx6CmdUtil.h#12 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/gfx6/gfx6CompoundState.cpp#10 delete ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/gfx6/gfx6CompoundState.h#7 delete ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/gfx6/gfx6ComputeCmdBuffer.cpp#25 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/gfx6/gfx6ComputeCmdBuffer.h#11 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/gfx6/gfx6ComputePipeline.cpp#16 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/gfx6/gfx6Device.cpp#32 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/gfx6/gfx6Device.h#19 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/gfx6/gfx6GraphicsPipeline.cpp#21 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/gfx6/gfx6GraphicsPipelineGs.cpp#14 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/gfx6/gfx6GraphicsPipelineGsTess.cpp#15 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/gfx6/gfx6GraphicsPipelineTess.cpp#15 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/gfx6/gfx6GraphicsPipelineVsPs.cpp#14 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/gfx6/gfx6HwGs.cpp#4 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/gfx6/gfx6Image.cpp#19 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/gfx6/gfx6MaskRam.cpp#15 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/gfx6/gfx6OcclusionQueryPool.cpp#8 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/gfx6/gfx6PalSettings.cfg#18 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/gfx6/gfx6PerfExperiment.cpp#13 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/gfx6/gfx6PerfTrace.cpp#9 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/gfx6/gfx6PerfTrace.h#2 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/gfx6/gfx6PipelineStatsQueryPool.cpp#6 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/gfx6/gfx6QueueContexts.cpp#19 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/gfx6/gfx6ScMgr.cpp#15 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/gfx6/gfx6ScMgr.h#4 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/gfx6/gfx6StreamoutStatsQueryPool.cpp#7 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/gfx6/gfx6UniversalCmdBuffer.cpp#28 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/gfx6/gfx6UniversalCmdBuffer.h#17 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/gfx9/chip/gfx9_default.h#2 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/gfx9/chip/gfx9_enum.h#4 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/gfx9/chip/gfx9_mask.h#2 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/gfx9/chip/gfx9_offset.h#2 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/gfx9/chip/gfx9_registers.h#2 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/gfx9/chip/gfx9_shift.h#2 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/gfx9/chip/gfx9_typedef.h#2 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/gfx9/gfx9Barrier.cpp#24 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/gfx9/gfx9Chip.h#21 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/gfx9/gfx9CompoundState.cpp#11 delete ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/gfx9/gfx9CompoundState.h#8 delete ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/gfx9/gfx9ComputeCmdBuffer.cpp#25 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/gfx9/gfx9ComputeCmdBuffer.h#10 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/gfx9/gfx9ComputePipeline.cpp#17 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/gfx9/gfx9Device.cpp#33 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/gfx9/gfx9Device.h#23 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/gfx9/gfx9GraphicsPipeline.cpp#28 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/gfx9/gfx9GraphicsPipelineGs.cpp#18 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/gfx9/gfx9GraphicsPipelineGsTess.cpp#19 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/gfx9/gfx9GraphicsPipelinePrim.cpp#20 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/gfx9/gfx9GraphicsPipelineSurfPrim.cpp#19 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/gfx9/gfx9GraphicsPipelineTess.cpp#18 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/gfx9/gfx9GraphicsPipelineVsPs.cpp#17 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/gfx9/gfx9HwGs.cpp#14 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/gfx9/gfx9Image.cpp#25 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/gfx9/gfx9MaskRam.cpp#22 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/gfx9/gfx9PalSettings.cfg#27 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/gfx9/gfx9PerfTrace.cpp#7 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/gfx9/gfx9PerfTrace.h#2 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/gfx9/gfx9PipelineChunkGs.cpp#22 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/gfx9/gfx9PipelineChunkGs.h#14 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/gfx9/gfx9QueueContexts.cpp#23 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/gfx9/gfx9ScMgr.cpp#22 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/gfx9/gfx9ScMgr.h#7 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/gfx9/gfx9UniversalCmdBuffer.cpp#35 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/gfx9/gfx9UniversalCmdBuffer.h#21 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/gfx9/gfx9WorkaroundState.cpp#7 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/gfxCmdBuffer.cpp#14 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/gfxDevice.cpp#19 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/gfxDevice.h#17 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/graphicsPipeline.cpp#10 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/graphicsPipeline.h#8 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/ilp/ilInstructionSet.cpp#13 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/ilp/ilInstructionSet.h#2 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/ilp/ilIterator.cpp#5 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/ilp/ilIterator.h#4 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/ilp/ilMetadata.cpp#10 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/ilp/ilMetadata.h#5 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/pipeline.cpp#9 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/pipeline.h#11 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/rpm/gfx6/gfx6RsrcProcMgr.cpp#22 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/rpm/gfx9/gfx9RsrcProcMgr.cpp#29 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/rpm/rpmGfxPipelineInfo.cpp#11 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/rpm/rsrcProcMgr.cpp#24 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/scMgr.cpp#15 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/scMgr.h#7 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/scpc/gfx6/gfx6UserDataMapper.cpp#1 branch ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/scpc/gfx6/gfx6UserDataMapper.h#1 branch ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/scpc/gfx9/gfx9UserDataMapper.cpp#1 branch ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/scpc/gfx9/gfx9UserDataMapper.h#1 branch ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/scpc/userDataMapper.cpp#1 branch ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/gfxip/scpc/userDataMapper.h#1 branch ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/ossip/oss1/oss1DmaCmdBuffer.cpp#8 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/ossip/oss1/oss1DmaCmdBuffer.h#4 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/ossip/oss2/oss2DmaCmdBuffer.cpp#12 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/ossip/oss2/oss2DmaCmdBuffer.h#5 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/ossip/oss2_4/oss2_4DmaCmdBuffer.cpp#11 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/ossip/oss2_4/oss2_4DmaCmdBuffer.h#6 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/ossip/oss4/oss4DmaCmdBuffer.cpp#15 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/ossip/oss4/oss4DmaCmdBuffer.h#9 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/ossip/ossDmaCmdBuffer.cpp#15 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/ossip/ossDmaCmdBuffer.h#9 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/uvdip/uvd5/uvd5CmdBuffer.cpp#11 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/uvdip/uvd5/uvd5DecodePipeline.cpp#5 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/uvdip/uvd5/uvd5Device.cpp#11 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/videoip/uvd/uvdEncoder.cpp#3 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/videoip/uvd/uvdEncoder.h#3 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/hw/videoip/videoDevice.cpp#4 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/image.cpp#17 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/image.h#15 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/imported/addrlib/addrinterface.h#17 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/imported/addrlib/core/addrelemlib.cpp#5 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/imported/addrlib/core/addrlib1.cpp#8 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/imported/addrlib/gfx9/gfx9addrlib.cpp#19 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/imported/addrlib/r800/ciaddrlib.cpp#6 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/imported/addrlib/r800/ciaddrlib.h#4 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/imported/addrlib/r800/egbaddrlib.cpp#3 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/imported/addrlib/r800/egbaddrlib.h#2 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/imported/jemalloc/CMakeLists.txt#1 branch ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/internalMemMgr.cpp#8 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/layers/cmdBufferLogger/cmdBufferLoggerCmdBuffer.cpp#21 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/layers/cmdBufferLogger/cmdBufferLoggerCmdBuffer.h#19 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/layers/cmdBufferLogger/cmdBufferLoggerPlatform.cpp#8 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/layers/dbgOverlay/dbgOverlayDevice.cpp#10 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/layers/dbgOverlay/dbgOverlayQueue.cpp#15 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/layers/decorators.cpp#21 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/layers/decorators.h#29 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/layers/gpuProfiler/gpuProfilerCmdBuffer.cpp#25 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/layers/gpuProfiler/gpuProfilerCmdBuffer.h#18 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/layers/gpuProfiler/gpuProfilerDevice.cpp#11 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/layers/gpuProfiler/gpuProfilerQueue.cpp#22 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/layers/gpuProfiler/gpuProfilerQueue.h#20 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/layers/gpuProfiler/gpuProfilerQueueFileLogger.cpp#20 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/layers/interfaceLogger/interfaceLoggerCmdBuffer.cpp#12 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/layers/interfaceLogger/interfaceLoggerCmdBuffer.h#10 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/layers/interfaceLogger/interfaceLoggerCompoundState.cpp#3 delete ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/layers/interfaceLogger/interfaceLoggerCompoundState.h#3 delete ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/layers/interfaceLogger/interfaceLoggerDevice.cpp#13 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/layers/interfaceLogger/interfaceLoggerDevice.h#10 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/layers/interfaceLogger/interfaceLoggerLogContext.cpp#15 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/layers/interfaceLogger/interfaceLoggerLogContext.h#17 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/layers/interfaceLogger/interfaceLoggerLogContextEnum.cpp#15 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/layers/interfaceLogger/interfaceLoggerLogContextStruct.cpp#21 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/layers/interfaceLogger/interfaceLoggerPlatform.cpp#15 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/layers/interfaceLogger/interfaceLoggerQueue.cpp#6 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/os/lnx/dri3/dri3Loader.cpp#4 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/os/lnx/dri3/dri3Loader.h#5 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/os/lnx/dri3/dri3WindowSystem.cpp#11 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/os/lnx/dri3/dri3WindowSystem.h#9 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/os/lnx/dri3/dri3WindowSystem.proc#3 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/os/lnx/drmLoader.cpp#3 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/os/lnx/drmLoader.h#3 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/os/lnx/drmLoader.proc#3 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/os/lnx/lnxDevice.cpp#29 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/os/lnx/lnxDevice.h#25 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/os/lnx/lnxGpuMemory.cpp#12 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/os/lnx/lnxPresentScheduler.cpp#2 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/os/lnx/lnxQueue.cpp#26 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/os/nullDevice/ndDevice.cpp#14 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/os/nullDevice/ndDevice.h#12 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/os/win/dxPlatform.cpp#10 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/os/win/wddm1/wddm1GpuMemory.cpp#13 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/os/win/wddm1/wddm1Queue.cpp#18 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/os/win/wddm2/wddm2GpuMemory.cpp#16 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/os/win/wddm2/wddm2Queue.cpp#23 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/os/win/winDevice.cpp#32 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/os/win/winDevice.h#24 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/os/win/winGpuMemory.cpp#25 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/os/win/winHeaders.h#4 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/os/win/winLdaChain.cpp#12 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/os/win/winPresentScheduler.cpp#2 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/os/win/winPresentTechniqueBlit.cpp#15 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/os/win/winPresentTechniqueGdi.cpp#16 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/os/win/winQueue.cpp#27 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/os/win/winThunks.h#14 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/perfExperiment.cpp#4 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/perfTrace.h#2 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/platform.cpp#20 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/queue.cpp#23 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/settings.cfg#26 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/settingsLoader.cpp#10 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/core/svmMgr.cpp#3 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/gpuUtil/gpaSession.cpp#14 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/gpuUtil/gpuUtil.cpp#3 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/src/make/Makefile.pal#28 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/tools/generate/generateMergedFormats/generateFormatHeaders.bat#3 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palbe/tools/generate/procAnalysis.py#4 integrate ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldefs.hpp#15 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#44 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palsettings.cpp#21 edit
615 řádky
27 KiB
C++
615 řádky
27 KiB
C++
//
|
|
// Copyright (c) 2015 Advanced Micro Devices, Inc. All rights reserved.
|
|
//
|
|
#pragma once
|
|
|
|
#include "top.hpp"
|
|
#include "pal.h"
|
|
#include "palGpuMemory.h"
|
|
#include "palImage.h"
|
|
#include "palFormatInfo.h"
|
|
|
|
//
|
|
/// Memory Object Type
|
|
//
|
|
enum PalGpuMemoryType {
|
|
PAL_DEPTH_BUFFER = 0, ///< Depth Buffer
|
|
PAL_BUFFER, ///< Pure buffer
|
|
PAL_TEXTURE_3D, ///< 3D texture
|
|
PAL_TEXTURE_2D, ///< 2D texture
|
|
PAL_TEXTURE_1D, ///< 1D texture
|
|
PAL_TEXTURE_1D_ARRAY, ///< 1D Array texture
|
|
PAL_TEXTURE_2D_ARRAY, ///< 2D Array texture
|
|
PAL_TEXTURE_BUFFER, ///< "buffer" texture inside VBO
|
|
};
|
|
|
|
struct HwDbgKernelInfo
|
|
{
|
|
uint64_t scratchBufAddr; ///< Handle of GPU local memory for kernel private scratch space
|
|
size_t scratchBufferSizeInBytes; ///< size of memory pointed to by pScratchBuffer,
|
|
uint64_t heapBufAddr; ///< Address of the global heap base
|
|
const void* pAqlDispatchPacket; ///< Pointer to the dipatch packet
|
|
const void* pAqlQueuePtr; ///< pointer to the AQL Queue
|
|
void* trapHandler; ///< address of the trap handler (TBA)
|
|
void* trapHandlerBuffer; ///< address of the trap handler buffer (TMA)
|
|
uint32_t excpEn; ///< excecption mask
|
|
bool trapPresent; ///< trap present flag
|
|
bool sqDebugMode; ///< debug mode flag (GPU single step mode)
|
|
uint32_t mgmtSe0Mask; ///< mask for SE0 (reserving CU for display)
|
|
uint32_t mgmtSe1Mask; ///< mask for SE1 (reserving CU for display)
|
|
uint32_t cacheDisableMask; ///< cache disable mask
|
|
};
|
|
|
|
//! Engine types
|
|
enum EngineType
|
|
{
|
|
MainEngine = 0,
|
|
SdmaEngine,
|
|
AllEngines
|
|
};
|
|
|
|
struct GpuEvent
|
|
{
|
|
static const unsigned int InvalidID = ((1<<30) - 1);
|
|
|
|
EngineType engineId_; ///< type of the id
|
|
unsigned int id; ///< actual event id
|
|
|
|
//! GPU event default constructor
|
|
GpuEvent(): engineId_(MainEngine), id(InvalidID) {}
|
|
|
|
//! Returns true if the current event is valid
|
|
bool isValid() const { return (id != InvalidID) ? true : false; }
|
|
|
|
//! Set invalid event id
|
|
void invalidate() { id = InvalidID; }
|
|
};
|
|
|
|
/*! \addtogroup PAL
|
|
* @{
|
|
*/
|
|
|
|
//! PAL Device Implementation
|
|
|
|
namespace pal {
|
|
|
|
//! Maximum number of the supported global atomic counters
|
|
const static uint MaxAtomicCounters = 8;
|
|
//! Maximum number of the supported samplers
|
|
const static uint MaxSamplers = 16;
|
|
//! Maximum number of supported read images
|
|
const static uint MaxReadImage = 128;
|
|
//! Maximum number of supported write images
|
|
const static uint MaxWriteImage = 8;
|
|
//! Maximum number of supported read/write images for OCL20
|
|
const static uint MaxReadWriteImage = 64;
|
|
//! Maximum number of supported constant arguments
|
|
const static uint MaxConstArguments = 8;
|
|
//! Maximum number of supported kernel UAV arguments
|
|
const static uint MaxUavArguments = 1024;
|
|
//! Maximum number of pixels for a 1D image created from a buffer
|
|
const static size_t MaxImageBufferSize = 1 << 27;
|
|
//! Maximum number of pixels for a 1D image created from a buffer
|
|
const static size_t MaxImageArraySize = 2048;
|
|
|
|
//! Maximum number of supported constant buffers
|
|
const static uint MaxConstBuffers = MaxConstArguments + 8;
|
|
|
|
//! Maximum number of constant buffers for arguments
|
|
const static uint MaxConstBuffersArguments = 2;
|
|
|
|
//! Alignment restriciton for the pinned memory
|
|
const static size_t PinnedMemoryAlignment = 4 * Ki;
|
|
|
|
//! HSA path specific defines for images
|
|
const static uint HsaImageObjectSize = 48;
|
|
const static uint HsaImageObjectAlignment = 16;
|
|
const static uint HsaSamplerObjectSize = 32;
|
|
const static uint HsaSamplerObjectAlignment = 16;
|
|
|
|
//! HSA path specific defines for images
|
|
const static uint DeviceQueueMaskSize = 32;
|
|
|
|
struct AMDDeviceInfo {
|
|
const char* targetName_; //!< Target name
|
|
const char* machineTarget_; //!< Machine target
|
|
uint simdPerCU_; //!< Number of SIMDs per CU
|
|
uint simdWidth_; //!< Number of workitems processed per SIMD
|
|
uint simdInstructionWidth_; //!< Number of instructions processed per SIMD
|
|
uint memChannelBankWidth_; //!< Memory channel bank width
|
|
uint localMemSizePerCU_; //!< Local memory size per CU
|
|
uint localMemBanks_; //!< Number of banks of local memory
|
|
uint gfxipVersion_; //!< The core engine GFXIP version
|
|
};
|
|
|
|
static const AMDDeviceInfo DeviceInfo[] = {
|
|
/* Unknown */ { "", "unknown", 4, 16, 1, 256, 64 * Ki, 32, 0 },
|
|
/* Tahiti */ { "", "tahiti", 4, 16, 1, 256, 64 * Ki, 32, 600 },
|
|
/* Pitcairn */ { "", "pitcairn", 4, 16, 1, 256, 64 * Ki, 32, 600 },
|
|
/* Capeverde */ { "", "bonaire", 4, 16, 1, 256, 64 * Ki, 32, 700 },
|
|
/* Oland */ { "", "oland", 4, 16, 1, 256, 64 * Ki, 32, 600 },
|
|
/* Hainan */ { "", "hainan", 4, 16, 1, 256, 64 * Ki, 32, 600 },
|
|
|
|
/* Bonaire */ { "Bonaire", "bonaire", 4, 16, 1, 256, 64 * Ki, 32, 700 },
|
|
/* Hawaii */ { "Hawaii", "hawaii", 4, 16, 1, 256, 64 * Ki, 32, 701 },
|
|
/* Hawaii */ { "", "grenada", 4, 16, 1, 256, 64 * Ki, 32, 701 },
|
|
/* Hawaii */ { "", "maui", 4, 16, 1, 256, 64 * Ki, 32, 701 },
|
|
|
|
/* Kalindi */ { "Kalindi", "kalindi", 4, 16, 1, 256, 64 * Ki, 32, 702 },
|
|
/* Godavari */ { "Mullins", "mullins", 4, 16, 1, 256, 64 * Ki, 32, 702 },
|
|
/* Spectre */ { "Spectre", "spectre", 4, 16, 1, 256, 64 * Ki, 32, 701 },
|
|
/* Spooky */ { "Spooky", "spooky", 4, 16, 1, 256, 64 * Ki, 32, 701 },
|
|
|
|
/* Carrizo */ { "Carrizo" , "carrizo", 4, 16, 1, 256, 64 * Ki, 32, 801 },
|
|
/* Bristol */ { "Bristol Ridge" , "carrizo", 4, 16, 1, 256, 64 * Ki, 32, 801 },
|
|
/* Stoney */ { "Stoney", "stoney", 4, 16, 1, 256, 64 * Ki, 32, 810 },
|
|
|
|
/* Iceland */ { "Iceland", "iceland", 4, 16, 1, 256, 64 * Ki, 32, 800 },
|
|
/* Tonga */ { "Tonga", "tonga", 4, 16, 1, 256, 64 * Ki, 32, 800 },
|
|
/* Fiji */ { "Fiji", "fiji", 4, 16, 1, 256, 64 * Ki, 32, 804 },
|
|
/* Ellesmere */ { "Ellesmere", "ellesmere",4, 16, 1, 256, 64 * Ki, 32, 804 },
|
|
/* Baffin */ { "Baffin", "baffin", 4, 16, 1, 256, 64 * Ki, 32, 804 },
|
|
};
|
|
|
|
// The GfxIpDeviceInfo table must match with GfxIpLevel enum
|
|
// (located in //depot/stg/pal/inc/core/palDevice.h).
|
|
static const AMDDeviceInfo GfxIpDeviceInfo[] = {
|
|
/* Unknown */ { "unknown", "unknown", 4, 16, 1, 256, 64 * Ki, 32, 000 },
|
|
/* GFX600 */ { "gfx600", "gfx600", 4, 16, 1, 256, 64 * Ki, 32, 600 },
|
|
/* GFX700 */ { "gfx700", "gfx700", 4, 16, 1, 256, 64 * Ki, 32, 700 },
|
|
/* GFX800 */ { "gfx800", "gfx800", 4, 16, 1, 256, 64 * Ki, 32, 800 },
|
|
/* GFX801 */ { "gfx801", "gfx801", 4, 16, 1, 256, 64 * Ki, 32, 801 },
|
|
/* GFX900 */ { "gfx900", "gfx900", 4, 16, 1, 256, 64 * Ki, 32, 900 },
|
|
};
|
|
|
|
static const AMDDeviceInfo Gfx901DeviceInfo =
|
|
/* GFX901 */ { "gfx901", "gfx901", 4, 16, 1, 256, 64 * Ki, 32, 901 };
|
|
|
|
enum gfx_handle {
|
|
gfx700 = 700,
|
|
gfx701 = 701,
|
|
gfx702 = 702,
|
|
gfx800 = 800,
|
|
gfx801 = 801,
|
|
gfx804 = 804,
|
|
gfx810 = 810,
|
|
gfx900 = 900,
|
|
gfx901 = 901
|
|
};
|
|
|
|
static const char* Gfx700 = "AMD:AMDGPU:7:0:0";
|
|
static const char* Gfx701 = "AMD:AMDGPU:7:0:1";
|
|
static const char* Gfx800 = "AMD:AMDGPU:8:0:0";
|
|
static const char* Gfx801 = "AMD:AMDGPU:8:0:1";
|
|
static const char* Gfx804 = "AMD:AMDGPU:8:0:4";
|
|
static const char* Gfx810 = "AMD:AMDGPU:8:1:0";
|
|
static const char* Gfx900 = "AMD:AMDGPU:9:0:0";
|
|
static const char* Gfx901 = "AMD:AMDGPU:9:0:1";
|
|
|
|
// Supported OpenCL versions
|
|
enum OclVersion {
|
|
OpenCL10,
|
|
OpenCL11,
|
|
OpenCL12,
|
|
OpenCL20
|
|
};
|
|
|
|
struct MemoryFormat {
|
|
cl_image_format clFormat_; //!< CL image format
|
|
Pal::ChNumFormat palFormat_; //!< PAL image format
|
|
Pal::ChannelMapping palChannel_; //!< PAL channel mapping
|
|
};
|
|
|
|
static const MemoryFormat
|
|
MemoryFormatMap[] = {
|
|
// R
|
|
{ { CL_R, CL_UNORM_INT8 },
|
|
Pal::ChNumFormat::X8_Unorm,
|
|
{ Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::Zero,
|
|
Pal::ChannelSwizzle::Zero, Pal::ChannelSwizzle::One } },
|
|
{ { CL_R, CL_UNORM_INT16 },
|
|
Pal::ChNumFormat::X16_Unorm,
|
|
{ Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::Zero,
|
|
Pal::ChannelSwizzle::Zero, Pal::ChannelSwizzle::One } },
|
|
|
|
{ { CL_R, CL_SNORM_INT8 },
|
|
Pal::ChNumFormat::X8_Snorm,
|
|
{ Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::Zero,
|
|
Pal::ChannelSwizzle::Zero, Pal::ChannelSwizzle::One } },
|
|
{ { CL_R, CL_SNORM_INT16 },
|
|
Pal::ChNumFormat::X16_Snorm,
|
|
{ Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::Zero,
|
|
Pal::ChannelSwizzle::Zero, Pal::ChannelSwizzle::One } },
|
|
|
|
{ { CL_R, CL_SIGNED_INT8 },
|
|
Pal::ChNumFormat::X8_Sint,
|
|
{ Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::Zero,
|
|
Pal::ChannelSwizzle::Zero, Pal::ChannelSwizzle::One } },
|
|
{ { CL_R, CL_SIGNED_INT16 },
|
|
Pal::ChNumFormat::X16_Sint,
|
|
{ Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::Zero,
|
|
Pal::ChannelSwizzle::Zero, Pal::ChannelSwizzle::One } },
|
|
{ { CL_R, CL_SIGNED_INT32 },
|
|
Pal::ChNumFormat::X32_Sint,
|
|
{ Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::Zero,
|
|
Pal::ChannelSwizzle::Zero, Pal::ChannelSwizzle::One } },
|
|
{ { CL_R, CL_UNSIGNED_INT8 },
|
|
Pal::ChNumFormat::X8_Uint,
|
|
{ Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::Zero,
|
|
Pal::ChannelSwizzle::Zero, Pal::ChannelSwizzle::One } },
|
|
{ { CL_R, CL_UNSIGNED_INT16 },
|
|
Pal::ChNumFormat::X16_Uint,
|
|
{ Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::Zero,
|
|
Pal::ChannelSwizzle::Zero, Pal::ChannelSwizzle::One } },
|
|
{ { CL_R, CL_UNSIGNED_INT32 },
|
|
Pal::ChNumFormat::X32_Uint,
|
|
{ Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::Zero,
|
|
Pal::ChannelSwizzle::Zero, Pal::ChannelSwizzle::One } },
|
|
|
|
{ { CL_R, CL_HALF_FLOAT },
|
|
Pal::ChNumFormat::X16_Float,
|
|
{ Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::Zero,
|
|
Pal::ChannelSwizzle::Zero, Pal::ChannelSwizzle::One } },
|
|
{ { CL_R, CL_FLOAT },
|
|
Pal::ChNumFormat::X32_Float,
|
|
{ Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::Zero,
|
|
Pal::ChannelSwizzle::Zero, Pal::ChannelSwizzle::One } },
|
|
|
|
// A
|
|
{ { CL_A, CL_UNORM_INT8 },
|
|
Pal::ChNumFormat::X8_Unorm,
|
|
{ Pal::ChannelSwizzle::Zero, Pal::ChannelSwizzle::Zero,
|
|
Pal::ChannelSwizzle::Zero, Pal::ChannelSwizzle::X } },
|
|
{ { CL_A, CL_UNORM_INT16 },
|
|
Pal::ChNumFormat::X16_Unorm,
|
|
{ Pal::ChannelSwizzle::Zero, Pal::ChannelSwizzle::Zero,
|
|
Pal::ChannelSwizzle::Zero, Pal::ChannelSwizzle::X } },
|
|
|
|
{ { CL_A, CL_SNORM_INT8 },
|
|
Pal::ChNumFormat::X8_Snorm,
|
|
{ Pal::ChannelSwizzle::Zero, Pal::ChannelSwizzle::Zero,
|
|
Pal::ChannelSwizzle::Zero, Pal::ChannelSwizzle::X } },
|
|
{ { CL_A, CL_SNORM_INT16 },
|
|
Pal::ChNumFormat::X16_Snorm,
|
|
{ Pal::ChannelSwizzle::Zero, Pal::ChannelSwizzle::Zero,
|
|
Pal::ChannelSwizzle::Zero, Pal::ChannelSwizzle::X } },
|
|
|
|
{ { CL_A, CL_SIGNED_INT8 },
|
|
Pal::ChNumFormat::X8_Sint,
|
|
{ Pal::ChannelSwizzle::Zero, Pal::ChannelSwizzle::Zero,
|
|
Pal::ChannelSwizzle::Zero, Pal::ChannelSwizzle::X } },
|
|
{ { CL_A, CL_SIGNED_INT16 },
|
|
Pal::ChNumFormat::X16_Sint,
|
|
{ Pal::ChannelSwizzle::Zero, Pal::ChannelSwizzle::Zero,
|
|
Pal::ChannelSwizzle::Zero, Pal::ChannelSwizzle::X } },
|
|
{ { CL_A, CL_SIGNED_INT32},
|
|
Pal::ChNumFormat::X32_Sint,
|
|
{ Pal::ChannelSwizzle::Zero, Pal::ChannelSwizzle::Zero,
|
|
Pal::ChannelSwizzle::Zero, Pal::ChannelSwizzle::X } },
|
|
{ { CL_A, CL_UNSIGNED_INT8 },
|
|
Pal::ChNumFormat::X8_Uint,
|
|
{ Pal::ChannelSwizzle::Zero, Pal::ChannelSwizzle::Zero,
|
|
Pal::ChannelSwizzle::Zero, Pal::ChannelSwizzle::X } },
|
|
{ { CL_A, CL_UNSIGNED_INT16 },
|
|
Pal::ChNumFormat::X16_Uint,
|
|
{ Pal::ChannelSwizzle::Zero, Pal::ChannelSwizzle::Zero,
|
|
Pal::ChannelSwizzle::Zero, Pal::ChannelSwizzle::X } },
|
|
{ { CL_A, CL_UNSIGNED_INT32},
|
|
Pal::ChNumFormat::X32_Uint,
|
|
{ Pal::ChannelSwizzle::Zero, Pal::ChannelSwizzle::Zero,
|
|
Pal::ChannelSwizzle::Zero, Pal::ChannelSwizzle::X } },
|
|
|
|
{ { CL_A, CL_HALF_FLOAT },
|
|
Pal::ChNumFormat::X16_Float,
|
|
{ Pal::ChannelSwizzle::Zero, Pal::ChannelSwizzle::Zero,
|
|
Pal::ChannelSwizzle::Zero, Pal::ChannelSwizzle::X } },
|
|
{ { CL_A, CL_FLOAT },
|
|
Pal::ChNumFormat::X32_Float,
|
|
{ Pal::ChannelSwizzle::Zero, Pal::ChannelSwizzle::Zero,
|
|
Pal::ChannelSwizzle::Zero, Pal::ChannelSwizzle::X } },
|
|
|
|
// RG
|
|
{ { CL_RG, CL_UNORM_INT8 },
|
|
Pal::ChNumFormat::X8Y8_Unorm,
|
|
{ Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::Y,
|
|
Pal::ChannelSwizzle::Zero, Pal::ChannelSwizzle::One } },
|
|
{ { CL_RG, CL_UNORM_INT16 },
|
|
Pal::ChNumFormat::X16Y16_Unorm,
|
|
{ Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::Y,
|
|
Pal::ChannelSwizzle::Zero, Pal::ChannelSwizzle::One } },
|
|
|
|
{ { CL_RG, CL_SNORM_INT8 },
|
|
Pal::ChNumFormat::X8Y8_Snorm,
|
|
{ Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::Y,
|
|
Pal::ChannelSwizzle::Zero, Pal::ChannelSwizzle::One } },
|
|
{ { CL_RG, CL_SNORM_INT16 },
|
|
Pal::ChNumFormat::X16Y16_Snorm,
|
|
{ Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::Y,
|
|
Pal::ChannelSwizzle::Zero, Pal::ChannelSwizzle::One } },
|
|
|
|
{ { CL_RG, CL_SIGNED_INT8 },
|
|
Pal::ChNumFormat::X8Y8_Sint,
|
|
{ Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::Y,
|
|
Pal::ChannelSwizzle::Zero, Pal::ChannelSwizzle::One } },
|
|
{ { CL_RG, CL_SIGNED_INT16 },
|
|
Pal::ChNumFormat::X16Y16_Sint,
|
|
{ Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::Y,
|
|
Pal::ChannelSwizzle::Zero, Pal::ChannelSwizzle::One } },
|
|
{ { CL_RG, CL_SIGNED_INT32},
|
|
Pal::ChNumFormat::X32Y32_Sint,
|
|
{ Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::Y,
|
|
Pal::ChannelSwizzle::Zero, Pal::ChannelSwizzle::One } },
|
|
{ { CL_RG, CL_UNSIGNED_INT8 },
|
|
Pal::ChNumFormat::X8Y8_Uint,
|
|
{ Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::Y,
|
|
Pal::ChannelSwizzle::Zero, Pal::ChannelSwizzle::One } },
|
|
{ { CL_RG, CL_UNSIGNED_INT16 },
|
|
Pal::ChNumFormat::X16Y16_Uint,
|
|
{ Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::Y,
|
|
Pal::ChannelSwizzle::Zero, Pal::ChannelSwizzle::One } },
|
|
{ { CL_RG, CL_UNSIGNED_INT32},
|
|
Pal::ChNumFormat::X32Y32_Uint,
|
|
{ Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::Y,
|
|
Pal::ChannelSwizzle::Zero, Pal::ChannelSwizzle::One } },
|
|
|
|
{ { CL_RG, CL_HALF_FLOAT },
|
|
Pal::ChNumFormat::X16Y16_Float,
|
|
{ Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::Y,
|
|
Pal::ChannelSwizzle::Zero, Pal::ChannelSwizzle::One } },
|
|
{ { CL_RG, CL_FLOAT },
|
|
Pal::ChNumFormat::X32Y32_Float,
|
|
{ Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::Y,
|
|
Pal::ChannelSwizzle::Zero, Pal::ChannelSwizzle::One } },
|
|
/*
|
|
// RA
|
|
{ { CL_RA, CL_UNORM_INT8 },
|
|
{ GSL_CHANNEL_ORDER_RA, CM_SURF_FMT_RG8 } },
|
|
{ { CL_RA, CL_UNORM_INT16 },
|
|
{ GSL_CHANNEL_ORDER_RA, CM_SURF_FMT_RG16 } },
|
|
|
|
{ { CL_RA, CL_SNORM_INT8 },
|
|
{ GSL_CHANNEL_ORDER_RA, CM_SURF_FMT_sRG8 } },
|
|
{ { CL_RA, CL_SNORM_INT16 },
|
|
{ GSL_CHANNEL_ORDER_RA, CM_SURF_FMT_sUV16 } },
|
|
|
|
{ { CL_RA, CL_SIGNED_INT8 },
|
|
{ GSL_CHANNEL_ORDER_RA, CM_SURF_FMT_sRG8I } },
|
|
{ { CL_RA, CL_SIGNED_INT16 },
|
|
{ GSL_CHANNEL_ORDER_RA, CM_SURF_FMT_sRG16I } },
|
|
{ { CL_RA, CL_SIGNED_INT32},
|
|
{ GSL_CHANNEL_ORDER_RA, CM_SURF_FMT_sRG32I } },
|
|
{ { CL_RA, CL_UNSIGNED_INT8 },
|
|
{ GSL_CHANNEL_ORDER_RA, CM_SURF_FMT_RG8I } },
|
|
{ { CL_RA, CL_UNSIGNED_INT16 },
|
|
{ GSL_CHANNEL_ORDER_RA, CM_SURF_FMT_RG16I } },
|
|
{ { CL_RA, CL_UNSIGNED_INT32},
|
|
{ GSL_CHANNEL_ORDER_RA , CM_SURF_FMT_RG32I } },
|
|
|
|
{ { CL_RA, CL_HALF_FLOAT },
|
|
{ GSL_CHANNEL_ORDER_RA, CM_SURF_FMT_RG16F } },
|
|
{ { CL_RA, CL_FLOAT },
|
|
{ GSL_CHANNEL_ORDER_RA, CM_SURF_FMT_RG32F } },
|
|
*/
|
|
// RGB
|
|
{ { CL_RGB, CL_UNORM_INT_101010 },
|
|
Pal::ChNumFormat::X10Y10Z10W2_Unorm,
|
|
{ Pal::ChannelSwizzle::Z, Pal::ChannelSwizzle::Y,
|
|
Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::One } },
|
|
{ { CL_RGB, CL_UNSIGNED_INT8 }, // This is used only by blit kernel
|
|
Pal::ChNumFormat::X8Y8Z8W8_Uint,
|
|
{ Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::Y,
|
|
Pal::ChannelSwizzle::Z, Pal::ChannelSwizzle::One } },
|
|
|
|
// RGBA
|
|
{ { CL_RGBA, CL_UNORM_INT8 },
|
|
Pal::ChNumFormat::X8Y8Z8W8_Unorm,
|
|
{ Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::Y,
|
|
Pal::ChannelSwizzle::Z, Pal::ChannelSwizzle::W } },
|
|
{ { CL_RGBA, CL_UNORM_INT16 },
|
|
Pal::ChNumFormat::X16Y16Z16W16_Unorm,
|
|
{ Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::Y,
|
|
Pal::ChannelSwizzle::Z, Pal::ChannelSwizzle::W } },
|
|
|
|
{ { CL_RGBA, CL_SNORM_INT8 },
|
|
Pal::ChNumFormat::X8Y8Z8W8_Snorm,
|
|
{ Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::Y,
|
|
Pal::ChannelSwizzle::Z, Pal::ChannelSwizzle::W } },
|
|
{ { CL_RGBA, CL_SNORM_INT16 },
|
|
Pal::ChNumFormat::X16Y16Z16W16_Snorm,
|
|
{ Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::Y,
|
|
Pal::ChannelSwizzle::Z, Pal::ChannelSwizzle::W } },
|
|
|
|
{ { CL_RGBA, CL_SIGNED_INT8 },
|
|
Pal::ChNumFormat::X8Y8Z8W8_Sint,
|
|
{ Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::Y,
|
|
Pal::ChannelSwizzle::Z, Pal::ChannelSwizzle::W } },
|
|
{ { CL_RGBA, CL_SIGNED_INT16 },
|
|
Pal::ChNumFormat::X16Y16Z16W16_Sint,
|
|
{ Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::Y,
|
|
Pal::ChannelSwizzle::Z, Pal::ChannelSwizzle::W } },
|
|
{ { CL_RGBA, CL_SIGNED_INT32 },
|
|
Pal::ChNumFormat::X32Y32Z32W32_Sint,
|
|
{ Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::Y,
|
|
Pal::ChannelSwizzle::Z, Pal::ChannelSwizzle::W } },
|
|
{ { CL_RGBA, CL_UNSIGNED_INT8 },
|
|
Pal::ChNumFormat::X8Y8Z8W8_Uint,
|
|
{ Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::Y,
|
|
Pal::ChannelSwizzle::Z, Pal::ChannelSwizzle::W } },
|
|
{ { CL_RGBA, CL_UNSIGNED_INT16 },
|
|
Pal::ChNumFormat::X16Y16Z16W16_Uint,
|
|
{ Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::Y,
|
|
Pal::ChannelSwizzle::Z, Pal::ChannelSwizzle::W } },
|
|
{ { CL_RGBA, CL_UNSIGNED_INT32},
|
|
Pal::ChNumFormat::X32Y32Z32W32_Uint,
|
|
{ Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::Y,
|
|
Pal::ChannelSwizzle::Z, Pal::ChannelSwizzle::W } },
|
|
|
|
{ { CL_RGBA, CL_HALF_FLOAT },
|
|
Pal::ChNumFormat::X16Y16Z16W16_Float,
|
|
{ Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::Y,
|
|
Pal::ChannelSwizzle::Z, Pal::ChannelSwizzle::W } },
|
|
{ { CL_RGBA, CL_FLOAT },
|
|
Pal::ChNumFormat::X32Y32Z32W32_Float,
|
|
{ Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::Y,
|
|
Pal::ChannelSwizzle::Z, Pal::ChannelSwizzle::W } },
|
|
|
|
// ARGB
|
|
{ { CL_ARGB, CL_UNORM_INT8 },
|
|
Pal::ChNumFormat::X8Y8Z8W8_Unorm,
|
|
{ Pal::ChannelSwizzle::Y, Pal::ChannelSwizzle::Z,
|
|
Pal::ChannelSwizzle::W, Pal::ChannelSwizzle::X } },
|
|
{ { CL_ARGB, CL_SNORM_INT8 },
|
|
Pal::ChNumFormat::X8Y8Z8W8_Snorm,
|
|
{ Pal::ChannelSwizzle::Y, Pal::ChannelSwizzle::Z,
|
|
Pal::ChannelSwizzle::W, Pal::ChannelSwizzle::X } },
|
|
{ { CL_ARGB, CL_SIGNED_INT8 },
|
|
Pal::ChNumFormat::X8Y8Z8W8_Sint,
|
|
{ Pal::ChannelSwizzle::Y, Pal::ChannelSwizzle::Z,
|
|
Pal::ChannelSwizzle::W, Pal::ChannelSwizzle::X } },
|
|
{ { CL_ARGB, CL_UNSIGNED_INT8 },
|
|
Pal::ChNumFormat::X8Y8Z8W8_Uint,
|
|
{ Pal::ChannelSwizzle::Y, Pal::ChannelSwizzle::Z,
|
|
Pal::ChannelSwizzle::W, Pal::ChannelSwizzle::X } },
|
|
|
|
// BGRA
|
|
{ { CL_BGRA, CL_UNORM_INT8 },
|
|
Pal::ChNumFormat::X8Y8Z8W8_Unorm,
|
|
{ Pal::ChannelSwizzle::Z, Pal::ChannelSwizzle::Y,
|
|
Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::W } },
|
|
{ { CL_BGRA, CL_SNORM_INT8 },
|
|
Pal::ChNumFormat::X8Y8Z8W8_Snorm,
|
|
{ Pal::ChannelSwizzle::Z, Pal::ChannelSwizzle::Y,
|
|
Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::W } },
|
|
{ { CL_BGRA, CL_SIGNED_INT8 },
|
|
Pal::ChNumFormat::X8Y8Z8W8_Sint,
|
|
{ Pal::ChannelSwizzle::Z, Pal::ChannelSwizzle::Y,
|
|
Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::W } },
|
|
{ { CL_BGRA, CL_UNSIGNED_INT8 },
|
|
Pal::ChNumFormat::X8Y8Z8W8_Uint,
|
|
{ Pal::ChannelSwizzle::Z, Pal::ChannelSwizzle::Y,
|
|
Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::W } },
|
|
|
|
// LUMINANCE
|
|
{ { CL_LUMINANCE, CL_SNORM_INT8 },
|
|
Pal::ChNumFormat::X8_Snorm,
|
|
{ Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::X,
|
|
Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::One } },
|
|
{ { CL_LUMINANCE, CL_SNORM_INT16 },
|
|
Pal::ChNumFormat::X16_Snorm,
|
|
{ Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::X,
|
|
Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::One } },
|
|
{ { CL_LUMINANCE, CL_UNORM_INT8 },
|
|
Pal::ChNumFormat::X8_Unorm,
|
|
{ Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::X,
|
|
Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::One } },
|
|
{ { CL_LUMINANCE, CL_UNORM_INT16 },
|
|
Pal::ChNumFormat::X16_Unorm,
|
|
{ Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::X,
|
|
Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::One } },
|
|
{ { CL_LUMINANCE, CL_HALF_FLOAT },
|
|
Pal::ChNumFormat::X16_Float,
|
|
{ Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::X,
|
|
Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::One } },
|
|
{ { CL_LUMINANCE, CL_FLOAT },
|
|
Pal::ChNumFormat::X32_Float,
|
|
{ Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::X,
|
|
Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::One } },
|
|
|
|
// INTENSITY
|
|
{ { CL_INTENSITY, CL_SNORM_INT8 },
|
|
Pal::ChNumFormat::X8_Snorm,
|
|
{ Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::X,
|
|
Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::X } },
|
|
{ { CL_INTENSITY, CL_SNORM_INT16 },
|
|
Pal::ChNumFormat::X16_Snorm,
|
|
{ Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::X,
|
|
Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::X } },
|
|
{ { CL_INTENSITY, CL_UNORM_INT8 },
|
|
Pal::ChNumFormat::X8_Unorm,
|
|
{ Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::X,
|
|
Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::X } },
|
|
{ { CL_INTENSITY, CL_UNORM_INT16 },
|
|
Pal::ChNumFormat::X16_Unorm,
|
|
{ Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::X,
|
|
Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::X } },
|
|
{ { CL_INTENSITY, CL_HALF_FLOAT },
|
|
Pal::ChNumFormat::X16_Float,
|
|
{ Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::X,
|
|
Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::X } },
|
|
{ { CL_INTENSITY, CL_FLOAT },
|
|
Pal::ChNumFormat::X32_Float,
|
|
{ Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::X,
|
|
Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::X } },
|
|
|
|
// sRBGA
|
|
{ { CL_sRGBA, CL_UNORM_INT8 },
|
|
Pal::ChNumFormat::X8Y8Z8W8_Srgb,
|
|
{ Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::Y,
|
|
Pal::ChannelSwizzle::Z, Pal::ChannelSwizzle::W } },
|
|
{ { CL_sRGBA, CL_UNSIGNED_INT8 }, // This is used only by blit kernel
|
|
Pal::ChNumFormat::X8Y8Z8W8_Uint,
|
|
{ Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::Y,
|
|
Pal::ChannelSwizzle::Z, Pal::ChannelSwizzle::W } },
|
|
|
|
// sRBG
|
|
{ { CL_sRGB, CL_UNORM_INT8 },
|
|
Pal::ChNumFormat::X8Y8Z8W8_Srgb,
|
|
{ Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::Y,
|
|
Pal::ChannelSwizzle::Z, Pal::ChannelSwizzle::One } },
|
|
{ { CL_sRGB, CL_UNSIGNED_INT8 }, // This is used only by blit kernel
|
|
Pal::ChNumFormat::X8Y8Z8W8_Uint,
|
|
{ Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::Y,
|
|
Pal::ChannelSwizzle::Z, Pal::ChannelSwizzle::One } },
|
|
|
|
// sRBGx
|
|
{ { CL_sRGBx, CL_UNORM_INT8 },
|
|
Pal::ChNumFormat::X8Y8Z8W8_Srgb,
|
|
{ Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::Y,
|
|
Pal::ChannelSwizzle::Z, Pal::ChannelSwizzle::One } },
|
|
{ { CL_sRGBx, CL_UNSIGNED_INT8 }, // This is used only by blit kernel
|
|
Pal::ChNumFormat::X8Y8Z8W8_Uint,
|
|
{ Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::Y,
|
|
Pal::ChannelSwizzle::Z, Pal::ChannelSwizzle::One } },
|
|
|
|
// sBGRA
|
|
{ { CL_sBGRA, CL_UNORM_INT8 },
|
|
Pal::ChNumFormat::X8Y8Z8W8_Srgb,
|
|
{ Pal::ChannelSwizzle::Z, Pal::ChannelSwizzle::Y,
|
|
Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::W } },
|
|
{ { CL_sBGRA, CL_UNSIGNED_INT8 }, // This is used only by blit kernel
|
|
Pal::ChNumFormat::X8Y8Z8W8_Uint,
|
|
{ Pal::ChannelSwizzle::Z, Pal::ChannelSwizzle::Y,
|
|
Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::W } },
|
|
|
|
// DEPTH
|
|
{ { CL_DEPTH, CL_FLOAT },
|
|
Pal::ChNumFormat::X32_Float,
|
|
{ Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::X,
|
|
Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::X } },
|
|
{ { CL_DEPTH, CL_UNSIGNED_INT32 }, // This is used only by blit kernel
|
|
Pal::ChNumFormat::X32_Uint,
|
|
{ Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::X,
|
|
Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::X } },
|
|
|
|
{ { CL_DEPTH, CL_UNORM_INT16 },
|
|
Pal::ChNumFormat::X16_Unorm,
|
|
{ Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::X,
|
|
Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::X } },
|
|
{ { CL_DEPTH, CL_UNSIGNED_INT16 }, // This is used only by blit kernel
|
|
Pal::ChNumFormat::X16_Uint,
|
|
{ Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::X,
|
|
Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::X } },
|
|
|
|
{ { CL_DEPTH_STENCIL, CL_UNORM_INT24 },
|
|
Pal::ChNumFormat::X32_Uint,
|
|
{ Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::X,
|
|
Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::X } },
|
|
{ { CL_DEPTH_STENCIL, CL_FLOAT },
|
|
Pal::ChNumFormat::X32_Float,
|
|
{ Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::X,
|
|
Pal::ChannelSwizzle::X, Pal::ChannelSwizzle::X } }
|
|
};
|
|
|
|
} // namespace pal
|
|
|