mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
refactor: correct variable namings
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
9e3a8bdf1b
commit
36194c4e7d
@@ -17,15 +17,6 @@
|
||||
|
||||
namespace NEO {
|
||||
|
||||
union SURFACE_STATE_BUFFER_LENGTH {
|
||||
uint32_t length;
|
||||
struct SurfaceState {
|
||||
uint32_t width : 7;
|
||||
uint32_t height : 14;
|
||||
uint32_t depth : 11;
|
||||
} surfaceState;
|
||||
};
|
||||
|
||||
template <typename GfxFamily>
|
||||
void BufferHw<GfxFamily>::setArgStateful(void *memory, bool forceNonAuxMode, bool disableL3, bool alignSizeForAuxTranslation,
|
||||
bool isReadOnlyArgument, const Device &device, bool useGlobalAtomics, bool areMultipleSubDevicesInContext) {
|
||||
|
||||
@@ -24,15 +24,6 @@
|
||||
|
||||
namespace NEO {
|
||||
|
||||
union SURFACE_STATE_BUFFER_LENGTH {
|
||||
uint32_t length;
|
||||
struct SurfaceState {
|
||||
uint32_t width : BITFIELD_RANGE(0, 6);
|
||||
uint32_t height : BITFIELD_RANGE(7, 20);
|
||||
uint32_t depth : BITFIELD_RANGE(21, 31);
|
||||
} surfaceState;
|
||||
};
|
||||
|
||||
template <typename GfxFamily>
|
||||
void ImageHw<GfxFamily>::setImageArg(void *memory, bool setAsMediaBlockImage, uint32_t mipLevel, uint32_t rootDeviceIndex, bool useGlobalAtomics) {
|
||||
using SURFACE_FORMAT = typename RENDER_SURFACE_STATE::SURFACE_FORMAT;
|
||||
@@ -58,7 +49,7 @@ void ImageHw<GfxFamily>::setImageArg(void *memory, bool setAsMediaBlockImage, ui
|
||||
if (getImageDesc().image_type == CL_MEM_OBJECT_IMAGE1D_BUFFER) {
|
||||
// image1d_buffer is image1d created from buffer. The length of buffer could be larger
|
||||
// than the maximal image width. Mock image1d_buffer with SURFACE_TYPE_SURFTYPE_BUFFER.
|
||||
SURFACE_STATE_BUFFER_LENGTH length = {0};
|
||||
SurfaceStateBufferLength length = {0};
|
||||
length.length = static_cast<uint32_t>(getImageDesc().image_width - 1);
|
||||
|
||||
depth = static_cast<uint32_t>(length.surfaceState.depth + 1);
|
||||
|
||||
Reference in New Issue
Block a user