refactor: correct variable namings

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2023-11-23 17:09:04 +00:00
committed by Compute-Runtime-Automation
parent 9e3a8bdf1b
commit 36194c4e7d
126 changed files with 872 additions and 894 deletions

View File

@@ -406,7 +406,7 @@ void EncodeSurfaceState<Family>::encodeBuffer(EncodeSurfaceStateArgs &args) {
auto surfaceState = reinterpret_cast<R_SURFACE_STATE *>(args.outMemory);
auto bufferSize = alignUp(args.size, getSurfaceBaseAddressAlignment());
SURFACE_STATE_BUFFER_LENGTH length = {0};
SurfaceStateBufferLength length = {0};
length.length = static_cast<uint32_t>(bufferSize - 1);
surfaceState->setWidth(length.surfaceState.width + 1);

View File

@@ -22,6 +22,15 @@ struct PipeControlArgs;
struct PipelineSelectArgs;
struct RootDeviceEnvironment;
union SurfaceStateBufferLength {
uint32_t length;
struct SurfaceState {
uint32_t width : 7; // BITFIELD_RANGE(0, 6)
uint32_t height : 14; // BITFIELD_RANGE(7, 20)
uint32_t depth : 11; // BITFIELD_RANGE(21, 31)
} surfaceState;
};
template <typename GfxFamily>
struct EncodeSurfaceState {
using R_SURFACE_STATE = typename GfxFamily::RENDER_SURFACE_STATE;