Skip to content

Commit 89699ed

Browse files
authored
Merge branch 'intel:master' into master
2 parents 5232038 + 30daede commit 89699ed

File tree

9 files changed

+43
-16
lines changed

9 files changed

+43
-16
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
cmake_minimum_required(VERSION 3.5)
2222
project(IntelMediaDriver)
23-
set(MEDIA_VERSION "25.1.0${MEDIA_VERSION_EXTRA}" CACHE STRING "" FORCE)
23+
set(MEDIA_VERSION "25.1.1${MEDIA_VERSION_EXTRA}" CACHE STRING "" FORCE)
2424

2525

2626

media_driver/media_softlet/agnostic/Xe_M/Xe_XPM_base/vp/hal/packet/vp_render_sfc_xe_xpm_base.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,13 +311,17 @@ bool SfcRenderXe_Xpm_Base::IsCscNeeded(SFC_CSC_PARAMS &cscParams)
311311

312312
MOS_STATUS SfcRenderXe_Xpm_Base::SetMmcParams(PMOS_SURFACE renderTarget, bool isFormatMmcSupported, bool isMmcEnabled)
313313
{
314+
VP_FUNC_CALL();
315+
VP_PUBLIC_CHK_NULL_RETURN(renderTarget);
316+
VP_PUBLIC_CHK_NULL_RETURN(m_renderDataLegacy.sfcStateParams);
317+
314318
if (((renderTarget->Format == Format_A16R16G16B16) ||
315319
(renderTarget->Format == Format_A16B16G16R16)) &&
316320
renderTarget->CompressionMode == MOS_MMC_RC)
317321
{
318322
m_renderDataLegacy.sfcStateParams->bMMCEnable = true;
319323
m_renderDataLegacy.sfcStateParams->MMCMode = MOS_MMC_RC;
320-
VP_RENDER_NORMALMESSAGE("renderTarget->Format % d, m_renderData.sfcStateParams->MMCMode % d", renderTarget->Format, m_renderData.sfcStateParams->MMCMode);
324+
VP_RENDER_NORMALMESSAGE("renderTarget->Format % d, m_renderDataLegacy.sfcStateParams->MMCMode % d", renderTarget->Format, m_renderDataLegacy.sfcStateParams->MMCMode);
321325
return MOS_STATUS_SUCCESS;
322326
}
323327

media_softlet/agnostic/Xe3_M_plus/Xe3_LPM_base/codec/hal/dec/jpeg/pipeline/media_srcs.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
1919
# OTHER DEALINGS IN THE SOFTWARE.
2020

21-
if(${AVC_Decode_Supported} STREQUAL "yes")
21+
if(${JPEG_Decode_Supported} STREQUAL "yes")
2222
set(SOFTLET_DECODE_JPEG_SOURCES_
2323
${SOFTLET_DECODE_JPEG_SOURCES_}
2424
${CMAKE_CURRENT_LIST_DIR}/decode_jpeg_pipeline_xe3_lpm_base.cpp

media_softlet/agnostic/Xe_M_plus/Xe_LPM_plus_base/hw/vdbox/mhw_vdbox_vdenc_impl_xe_lpm_plus_base.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,16 @@ class BaseImplGeneric : public vdenc::Impl<cmd_t>
110110

111111
return MOS_STATUS_SUCCESS;
112112
}
113+
_MHW_SETCMD_OVERRIDE_DECL(VDENC_AVC_IMG_STATE)
114+
{
115+
_MHW_SETCMD_CALLBASE(VDENC_AVC_IMG_STATE);
116+
117+
#define DO_FIELDS_EXT() \
118+
__MHW_VDBOX_VDENC_WRAPPER_EXT(VDENC_AVC_IMG_STATE_IMPL_XE_LPM_BASE_EXT)
119+
120+
#include "mhw_hwcmd_process_cmdfields.h"
121+
}
122+
113123
MEDIA_CLASS_DEFINE_END(mhw__vdbox__vdenc__xe_lpm_plus_base__BaseImplGeneric)
114124
};
115125
} // namespace xe_lpm_plus_base

media_softlet/agnostic/Xe_M_plus/Xe_LPM_plus_base/vp/hal/packet/vp_render_sfc_xe_lpm_plus_base.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -687,6 +687,10 @@ MOS_STATUS SfcRenderXe_Lpm_Plus_Base::AddSfcState(
687687

688688
MOS_STATUS SfcRenderXe_Lpm_Plus_Base::SetMmcParams(PMOS_SURFACE renderTarget, bool isFormatMmcSupported, bool isMmcEnabled)
689689
{
690+
VP_FUNC_CALL();
691+
VP_PUBLIC_CHK_NULL_RETURN(renderTarget);
692+
VP_PUBLIC_CHK_NULL_RETURN(m_renderData.sfcStateParams);
693+
690694
if (((renderTarget->Format == Format_A16R16G16B16) ||
691695
(renderTarget->Format == Format_A16B16G16R16)) &&
692696
renderTarget->CompressionMode == MOS_MMC_RC)

media_softlet/agnostic/common/hw/mhw_vebox_impl.h

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -901,6 +901,7 @@ class Impl : public Itf, public mhw::Impl
901901
{
902902
MHW_CHK_NULL_RETURN(m_veboxHeap);
903903
MHW_CHK_NULL_RETURN(m_veboxHeap->pStates);
904+
uint32_t reportedUsedID = 0;
904905
for (uint32_t index = 0; index < m_veboxSettings.uiNumInstances; index++)
905906
{
906907
const MHW_VEBOX_HEAP_STATE &curInstance = m_veboxHeap->pStates[index];
@@ -909,10 +910,21 @@ class Impl : public Itf, public mhw::Impl
909910
m_usedVeboxID |= 1 << (*curInstance.engineData).instanceId;
910911
}
911912
}
913+
// It is only used in debugging scenarios for multi-Vebox platforms.
914+
// No need to add any locks here.
915+
// This approach can handle all current debugging scenarios with multiple threads/processes.
916+
ReadUserSettingForDebug(
917+
m_userSettingPtr,
918+
reportedUsedID,
919+
__MEDIA_USER_FEATURE_VALUE_USED_VEBOX_ID,
920+
MediaUserSetting::Group::Sequence,
921+
0,
922+
false,
923+
MEDIA_USER_SETTING_INTERNAL_REPORT);
912924
ReportUserSettingForDebug(
913925
m_userSettingPtr,
914926
__MEDIA_USER_FEATURE_VALUE_USED_VEBOX_ID,
915-
m_usedVeboxID,
927+
reportedUsedID | m_usedVeboxID,
916928
MediaUserSetting::Group::Sequence);
917929
}
918930
return MOS_STATUS_SUCCESS;

media_softlet/linux/common/ddi/capstable_data_image_format_definition.h

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,14 @@
2929

3030
#include "va/va.h"
3131

32-
static VAImageFormat formatBGRA = {VA_FOURCC_BGRA, VA_LSB_FIRST, 32, 32, 0x0000ff00, 0x00ff0000, 0xff000000, 0x000000ff }; /* [31:0] B:G:R:A 8:8:8:8 little endian */
32+
// "VA_LSB_FIRST" is to identify how following bit masks mapped to address instead of char order in VA_FOURCC_RGBA naming.
33+
static VAImageFormat formatBGRA = {VA_FOURCC_BGRA, VA_LSB_FIRST, 32, 32, 0x00ff0000, 0x0000ff00, 0x000000ff, 0xff000000}; /* [31:0] A:R:G:B 8:8:8:8 little endian */
3334
static VAImageFormat formatARGB = {VA_FOURCC_ARGB, VA_LSB_FIRST, 32, 32, 0x00ff0000, 0x0000ff00, 0x000000ff, 0xff000000 }; /* [31:0] A:R:G:B 8:8:8:8 little endian */
34-
static VAImageFormat formatRGBA = {VA_FOURCC_RGBA, VA_LSB_FIRST, 32, 32, 0xff000000, 0x00ff0000, 0x0000ff00, 0x000000ff }; /* [31:0] R:G:B:A 8:8:8:8 little endian */
35+
static VAImageFormat formatRGBA = {VA_FOURCC_RGBA, VA_LSB_FIRST, 32, 32, 0x000000ff, 0x0000ff00, 0x00ff0000, 0xff000000}; /* [31:0] A:B:G:R 8:8:8:8 little endian */
3536
static VAImageFormat formatABGR = {VA_FOURCC_ABGR, VA_LSB_FIRST, 32, 32, 0x000000ff, 0x0000ff00, 0x00ff0000, 0xff000000 }; /* [31:0] A:B:G:R 8:8:8:8 little endian */
36-
static VAImageFormat formatBGRX = {VA_FOURCC_BGRX, VA_LSB_FIRST, 32, 24, 0x0000ff00, 0x00ff0000, 0xff000000, 0 }; /* [31:0] B:G:R:x 8:8:8:8 little endian */
37+
static VAImageFormat formatBGRX = {VA_FOURCC_BGRX, VA_LSB_FIRST, 32, 24, 0x00ff0000, 0x0000ff00, 0x000000ff, 0}; /* [31:0] X:R:G:B 8:8:8:8 little endian */
3738
static VAImageFormat formatXRGB = {VA_FOURCC_XRGB, VA_LSB_FIRST, 32, 24, 0x00ff0000, 0x0000ff00, 0x000000ff, 0 }; /* [31:0] x:R:G:B 8:8:8:8 little endian */
38-
static VAImageFormat formatRGBX = {VA_FOURCC_RGBX, VA_LSB_FIRST, 32, 24, 0xff000000, 0x00ff0000, 0x0000ff00, 0 }; /* [31:0] R:G:B:x 8:8:8:8 little endian */
39+
static VAImageFormat formatRGBX = {VA_FOURCC_RGBX, VA_LSB_FIRST, 32, 24, 0x000000ff, 0x0000ff00, 0x00ff0000, 0}; /* [31:0] X:B:G:R 8:8:8:8 little endian */
3940
static VAImageFormat formatXBGR = {VA_FOURCC_XBGR, VA_LSB_FIRST, 32, 24, 0x000000ff, 0x0000ff00, 0x00ff0000, 0 }; /* [31:0] x:B:G:R 8:8:8:8 little endian */
4041
static VAImageFormat formatA2R10G10B10 = {VA_FOURCC_A2R10G10B10, VA_LSB_FIRST, 32, 30, 0x3ff00000, 0x000ffc00, 0x000003ff, 0x30000000 }; /* [31:0] A:R:G:B 2:10:10:10 little endian */
4142
static VAImageFormat formatA2B10G10R10 = {VA_FOURCC_A2B10G10R10, VA_LSB_FIRST, 32, 30, 0x000003ff, 0x000ffc00, 0x3ff00000, 0x30000000 }; /* [31:0] A:B:G:R 2:10:10:10 little endian */
@@ -70,4 +71,4 @@ static VAImageFormat formatY416 = {VA_FOURCC_Y416, VA_LSB_FIRST,
7071
static VAImageFormat formatRGBP = {VA_FOURCC_RGBP, VA_LSB_FIRST, 24, 24,0,0,0,0};
7172
static VAImageFormat formatBGRP = {VA_FOURCC_BGRP, VA_LSB_FIRST, 24, 24,0,0,0,0};
7273

73-
#endif //__CAPSTABLE_DATA_IMAGE_FORMAT_DEFINITION_H__
74+
#endif //__CAPSTABLE_DATA_IMAGE_FORMAT_DEFINITION_H__

media_softlet/linux/common/ddi/media_libva_util_next.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1537,10 +1537,6 @@ VAStatus MediaLibvaUtilNext::CreateShadowResource(DDI_MEDIA_SURFACE *surface)
15371537
DDI_FUNC_ENTER;
15381538
DDI_CHK_NULL(surface, "nullptr surface", VA_STATUS_ERROR_INVALID_SURFACE);
15391539
DDI_CHK_NULL(surface->pGmmResourceInfo, "nullptr surface->pGmmResourceInfo", VA_STATUS_ERROR_INVALID_SURFACE);
1540-
if (surface->pGmmResourceInfo->GetSetCpSurfTag(0, 0) != 0)
1541-
{
1542-
return VA_STATUS_ERROR_INVALID_SURFACE;
1543-
}
15441540

15451541
if (surface->iWidth < 64 || surface->iRealHeight < 64 || (surface->iPitch % 64 != 0) || surface->format == Media_Format_P016)
15461542
{
@@ -2260,7 +2256,7 @@ VAStatus MediaLibvaUtilNext::GetSurfaceModifier(
22602256
switch(gmmTileType)
22612257
{
22622258
case GMM_TILED_4:
2263-
modifier = gmmFlags.Info.MediaCompressed ? compressedModifier : I915_FORMAT_MOD_4_TILED;
2259+
modifier = gmmFlags.Info.NotCompressed ? I915_FORMAT_MOD_4_TILED : compressedModifier;
22642260
break;
22652261
case GMM_TILED_Y:
22662262
modifier = I915_FORMAT_MOD_Y_TILED;
@@ -2275,7 +2271,7 @@ VAStatus MediaLibvaUtilNext::GetSurfaceModifier(
22752271
//handle other possible tile format
22762272
if(TILING_Y == mediaSurface->TileType)
22772273
{
2278-
modifier = gmmFlags.Info.MediaCompressed ? compressedModifier : I915_FORMAT_MOD_4_TILED;
2274+
modifier = gmmFlags.Info.NotCompressed ? I915_FORMAT_MOD_4_TILED : compressedModifier;
22792275
}
22802276
else
22812277
{

media_softlet/linux/xe_lpm_plus_r0/encode/av1/ddi/capstable_data_av1_encode_xe_lpm_plus_r0_specific.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ static ConfigDataList configDataList_VAProfileAV1Profile0_VAEntrypointEncSlice_X
6666
//!
6767
static const AttribList attribList_VAProfileAV1Profile0_VAEntrypointEncSlice_Xe_Lpm_plus_r0
6868
{
69-
{VAConfigAttribRTFormat, VA_RT_FORMAT_YUV420 | VA_RT_FORMAT_YUV420_10},
69+
{VAConfigAttribRTFormat, VA_RT_FORMAT_YUV420 | VA_RT_FORMAT_YUV420_10 | VA_RT_FORMAT_RGB32 | VA_RT_FORMAT_RGB32_10BPP},
7070
{VAConfigAttribEncDynamicScaling, 0},
7171
{VAConfigAttribEncDirtyRect, VA_ATTRIB_NOT_SUPPORTED},
7272
{VAConfigAttribEncAV1Ext2, VAProfileAV1Profile0_VAEntrypointEncSlice_encAV1Ext2.value},

0 commit comments

Comments
 (0)