mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 01:04:57 +08:00
add function to append params for image from buffer
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
8b48b33a0c
commit
72d124e275
@@ -266,6 +266,7 @@ struct EncodeSurfaceState {
|
|||||||
static void setClearColorParams(R_SURFACE_STATE *surfaceState, Gmm *gmm);
|
static void setClearColorParams(R_SURFACE_STATE *surfaceState, Gmm *gmm);
|
||||||
static void setFlagsForMediaCompression(R_SURFACE_STATE *surfaceState, Gmm *gmm);
|
static void setFlagsForMediaCompression(R_SURFACE_STATE *surfaceState, Gmm *gmm);
|
||||||
static void disableCompressionFlags(R_SURFACE_STATE *surfaceState);
|
static void disableCompressionFlags(R_SURFACE_STATE *surfaceState);
|
||||||
|
static void appendParamsForImageFromBuffer(R_SURFACE_STATE *surfaceState);
|
||||||
};
|
};
|
||||||
|
|
||||||
template <typename GfxFamily>
|
template <typename GfxFamily>
|
||||||
|
|||||||
@@ -451,6 +451,10 @@ bool EncodeSurfaceState<Family>::isAuxModeEnabled(R_SURFACE_STATE *surfaceState,
|
|||||||
return (surfaceState->getAuxiliarySurfaceMode() == AUXILIARY_SURFACE_MODE::AUXILIARY_SURFACE_MODE_AUX_CCS_E);
|
return (surfaceState->getAuxiliarySurfaceMode() == AUXILIARY_SURFACE_MODE::AUXILIARY_SURFACE_MODE_AUX_CCS_E);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template <typename Family>
|
||||||
|
void EncodeSurfaceState<Family>::appendParamsForImageFromBuffer(R_SURFACE_STATE *surfaceState) {
|
||||||
|
}
|
||||||
|
|
||||||
template <typename Family>
|
template <typename Family>
|
||||||
void *EncodeDispatchKernel<Family>::getInterfaceDescriptor(CommandContainer &container, uint32_t &iddOffset) {
|
void *EncodeDispatchKernel<Family>::getInterfaceDescriptor(CommandContainer &container, uint32_t &iddOffset) {
|
||||||
|
|
||||||
|
|||||||
@@ -101,3 +101,13 @@ HWTEST_F(CommandEncoderTests, givenNotify) {
|
|||||||
EXPECT_EQ(immData, miFlushDwCmd->getImmediateData());
|
EXPECT_EQ(immData, miFlushDwCmd->getImmediateData());
|
||||||
EXPECT_EQ(1u, static_cast<uint32_t>(miFlushDwCmd->getNotifyEnable()));
|
EXPECT_EQ(1u, static_cast<uint32_t>(miFlushDwCmd->getNotifyEnable()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
HWCMDTEST_F(IGFX_GEN8_CORE, CommandEncoderTests, whenAppendParamsForImageFromBufferThenNothingChanges) {
|
||||||
|
auto surfaceState = FamilyType::cmdInitRenderSurfaceState;
|
||||||
|
auto expectedState = surfaceState;
|
||||||
|
|
||||||
|
EXPECT_EQ(0, memcmp(&expectedState, &surfaceState, sizeof(surfaceState)));
|
||||||
|
EncodeSurfaceState<FamilyType>::appendParamsForImageFromBuffer(&surfaceState);
|
||||||
|
|
||||||
|
EXPECT_EQ(0, memcmp(&expectedState, &surfaceState, sizeof(surfaceState)));
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user