mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 09:58:55 +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
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user