Home
last modified time | relevance | path

Searched refs:BytePerPixel (Results 1 – 12 of 12) sorted by relevance

/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dml/dcn21/
Ddisplay_mode_vba_21.c155 unsigned int BytePerPixel,
177 unsigned int BytePerPixel,
1086 unsigned int BytePerPixel, in CalculateDCCConfiguration() argument
1102 if (DETBufferSize >= RequestHeight256Byte * ViewportWidth * BytePerPixel in CalculateDCCConfiguration()
1108 < RequestHeight256Byte * ViewportWidth * BytePerPixel in CalculateDCCConfiguration()
1109 && (BytePerPixel == 2 || BytePerPixel == 4)) in CalculateDCCConfiguration()
1113 && BytePerPixel == 8 in CalculateDCCConfiguration()
1134 if (BytePerPixel == 1) { in CalculateDCCConfiguration()
1140 } else if (BytePerPixel == 2) { in CalculateDCCConfiguration()
1148 } else if (BytePerPixel == 4) { in CalculateDCCConfiguration()
[all …]
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dml/dcn20/
Ddisplay_mode_vba_20.c139 unsigned int BytePerPixel,
866 unsigned int BytePerPixel, in CalculateVMAndRowBytes() argument
905 *MetaRowByte = MetaSurfWidth * MetaRequestHeight * BytePerPixel / 256.0; in CalculateVMAndRowBytes()
910 *MetaRowByte = MetaSurfHeight * MetaRequestWidth * BytePerPixel / 256.0; in CalculateVMAndRowBytes()
915 + 64 * BlockHeight256Bytes) * BytePerPixel in CalculateVMAndRowBytes()
922 + 64 * BlockHeight256Bytes) * BytePerPixel in CalculateVMAndRowBytes()
958 *MacroTileWidth = MacroTileSizeBytes / BytePerPixel / MacroTileHeight; in CalculateVMAndRowBytes()
971 * BytePerPixel) in CalculateVMAndRowBytes()
986 * BytePerPixel) in CalculateVMAndRowBytes()
1010 PixelPTEReqWidth = 8.0 * VMMPageSize / BytePerPixel; in CalculateVMAndRowBytes()
[all …]
Ddisplay_mode_vba_20v2.c163 unsigned int BytePerPixel,
926 unsigned int BytePerPixel, in CalculateVMAndRowBytes() argument
965 *MetaRowByte = MetaSurfWidth * MetaRequestHeight * BytePerPixel / 256.0; in CalculateVMAndRowBytes()
970 *MetaRowByte = MetaSurfHeight * MetaRequestWidth * BytePerPixel / 256.0; in CalculateVMAndRowBytes()
975 + 64 * BlockHeight256Bytes) * BytePerPixel in CalculateVMAndRowBytes()
982 + 64 * BlockHeight256Bytes) * BytePerPixel in CalculateVMAndRowBytes()
1018 *MacroTileWidth = MacroTileSizeBytes / BytePerPixel / MacroTileHeight; in CalculateVMAndRowBytes()
1031 * BytePerPixel) in CalculateVMAndRowBytes()
1046 * BytePerPixel) in CalculateVMAndRowBytes()
1070 PixelPTEReqWidth = 8.0 * VMMPageSize / BytePerPixel; in CalculateVMAndRowBytes()
[all …]
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dml/dcn32/
Ddisplay_mode_vba_util_32.c2266 unsigned int BytePerPixel, in dml32_CalculateVMAndRowBytes() argument
2336 *MetaRowByte = *meta_row_width * *MetaRequestHeight * BytePerPixel / 256.0; in dml32_CalculateVMAndRowBytes()
2345 *MetaRowByte = *meta_row_width * *MetaRequestWidth * BytePerPixel / 256.0; in dml32_CalculateVMAndRowBytes()
2357 DCCMetaSurfaceBytes = DCCMetaPitch * vp_height_meta_ub * BytePerPixel / 256.0; in dml32_CalculateVMAndRowBytes()
2374 MacroTileSizeBytes = MacroTileWidth * BytePerPixel * MacroTileHeight; in dml32_CalculateVMAndRowBytes()
2386 …*DPDE0BytesFrame = 64 * (dml_ceil((Pitch * vp_height_dpte_ub * BytePerPixel - MacroTileSizeBytes) / in dml32_CalculateVMAndRowBytes()
2401 dml_print("DML::%s: BytePerPixel = %d\n", __func__, BytePerPixel); in dml32_CalculateVMAndRowBytes()
2422 *PixelPTEReqWidth = GPUVMMinPageSizeKBytes * 1024 * 8 / BytePerPixel; in dml32_CalculateVMAndRowBytes()
2423 PixelPTEReqWidth_linear = GPUVMMinPageSizeKBytes * 1024 * 8 / BytePerPixel; in dml32_CalculateVMAndRowBytes()
2431 *PixelPTEReqWidth = 8 * 1024 * GPUVMMinPageSizeKBytes / (MacroTileHeight * BytePerPixel); in dml32_CalculateVMAndRowBytes()
Ddisplay_mode_vba_util_32.h442 unsigned int BytePerPixel,
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dml/dcn30/
Ddisplay_mode_vba_30.c188 unsigned int BytePerPixel,
1664 unsigned int BytePerPixel, in CalculateVMAndRowBytes() argument
1721 *MetaRowByte = *meta_row_width * *MetaRequestHeight * BytePerPixel / 256.0; in CalculateVMAndRowBytes()
1726 *MetaRowByte = *meta_row_width * *MetaRequestWidth * BytePerPixel / 256.0; in CalculateVMAndRowBytes()
1729 + 64 * BlockHeight256Bytes) * BytePerPixel / 256; in CalculateVMAndRowBytes()
1751 *MacroTileWidth = MacroTileSizeBytes / BytePerPixel / MacroTileHeight; in CalculateVMAndRowBytes()
1755 …* (dml_ceil(ViewportHeight - 1, MacroTileHeight) + MacroTileHeight) * BytePerPixel) - MacroTileSiz… in CalculateVMAndRowBytes()
1757 …l_ceil((double) SwathWidth - 1, MacroTileHeight) + MacroTileHeight) * BytePerPixel) - MacroTileSiz… in CalculateVMAndRowBytes()
1775 *PixelPTEReqWidth = 32768.0 / BytePerPixel; in CalculateVMAndRowBytes()
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dml/dcn31/
Ddisplay_mode_vba_31.c205 unsigned int BytePerPixel,
1798 unsigned int BytePerPixel, argument
1854 *MetaRowByte = *meta_row_width * *MetaRequestHeight * BytePerPixel / 256.0;
1858 *MetaRowByte = *meta_row_width * *MetaRequestWidth * BytePerPixel / 256.0;
1860 …eil(ViewportHeight - 1, 64 * BlockHeight256Bytes) + 64 * BlockHeight256Bytes) * BytePerPixel / 256;
1882 *MacroTileWidth = MacroTileSizeBytes / BytePerPixel / MacroTileHeight;
1888 …((Pitch * (dml_ceil(ViewportHeight - 1, MacroTileHeight) + MacroTileHeight) * BytePerPixel) - Macr…
1894 …l_ceil((double) SwathWidth - 1, MacroTileHeight) + MacroTileHeight) * BytePerPixel) - MacroTileSiz…
1924 *PixelPTEReqWidth = 32768.0 / BytePerPixel;
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dml/dcn314/
Ddisplay_mode_vba_314.c214 unsigned int BytePerPixel,
1815 unsigned int BytePerPixel, argument
1871 *MetaRowByte = *meta_row_width * *MetaRequestHeight * BytePerPixel / 256.0;
1875 *MetaRowByte = *meta_row_width * *MetaRequestWidth * BytePerPixel / 256.0;
1877 …eil(ViewportHeight - 1, 64 * BlockHeight256Bytes) + 64 * BlockHeight256Bytes) * BytePerPixel / 256;
1899 *MacroTileWidth = MacroTileSizeBytes / BytePerPixel / MacroTileHeight;
1905 …((Pitch * (dml_ceil(ViewportHeight - 1, MacroTileHeight) + MacroTileHeight) * BytePerPixel) - Macr…
1911 …l_ceil((double) SwathWidth - 1, MacroTileHeight) + MacroTileHeight) * BytePerPixel) - MacroTileSiz…
1941 *PixelPTEReqWidth = 32768.0 / BytePerPixel;
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_core/
Ddml2_core_dcn4_calcs.c1626 …*p->meta_row_bytes = (unsigned int)(*p->meta_row_width * *p->MetaRequestHeight * p->BytePerPixel /… in CalculateVMAndRowBytes()
1634 …*p->meta_row_bytes = (unsigned int)(*p->meta_row_width * *p->MetaRequestHeight * p->BytePerPixel /… in CalculateVMAndRowBytes()
1642 …*p->meta_row_bytes = (unsigned int)(*p->meta_row_width * *p->MetaRequestWidth * p->BytePerPixel / … in CalculateVMAndRowBytes()
1653 meta_surface_bytes = (unsigned int)(p->DCCMetaPitch * vp_height_meta_ub * p->BytePerPixel / 256.0); in CalculateVMAndRowBytes()
1691 MacroTileSizeBytes = p->MacroTileWidth * p->BytePerPixel * p->MacroTileHeight; in CalculateVMAndRowBytes()
1702 …gned int)(64 * (math_ceil2((double)(p->Pitch * vp_height_dpte_ub * p->BytePerPixel - MacroTileSize… in CalculateVMAndRowBytes()
1715 dml2_printf("DML::%s: BytePerPixel = %u\n", __func__, p->BytePerPixel); in CalculateVMAndRowBytes()
1733 *p->PixelPTEReqWidth = p->GPUVMMinPageSizeKBytes * 1024 * 8 / p->BytePerPixel; in CalculateVMAndRowBytes()
1734 PixelPTEReqWidth_linear = p->GPUVMMinPageSizeKBytes * 1024 * 8 / p->BytePerPixel; in CalculateVMAndRowBytes()
1738 *p->vmpg_width = p->GPUVMMinPageSizeKBytes * 1024 / p->BytePerPixel; in CalculateVMAndRowBytes()
[all …]
Ddml2_core_shared.c4302 …*p->meta_row_bytes = (unsigned int)(*p->meta_row_width * *p->MetaRequestHeight * p->BytePerPixel /… in CalculateVMAndRowBytes()
4310 …*p->meta_row_bytes = (unsigned int)(*p->meta_row_width * *p->MetaRequestHeight * p->BytePerPixel /… in CalculateVMAndRowBytes()
4318 …*p->meta_row_bytes = (unsigned int)(*p->meta_row_width * *p->MetaRequestWidth * p->BytePerPixel / … in CalculateVMAndRowBytes()
4329 meta_surface_bytes = (unsigned int)(p->DCCMetaPitch * vp_height_meta_ub * p->BytePerPixel / 256.0); in CalculateVMAndRowBytes()
4367 MacroTileSizeBytes = p->MacroTileWidth * p->BytePerPixel * p->MacroTileHeight; in CalculateVMAndRowBytes()
4378 …gned int)(64 * (math_ceil2((double)(p->Pitch * vp_height_dpte_ub * p->BytePerPixel - MacroTileSize… in CalculateVMAndRowBytes()
4391 dml2_printf("DML::%s: BytePerPixel = %u\n", __func__, p->BytePerPixel); in CalculateVMAndRowBytes()
4411 *p->PixelPTEReqWidth = p->GPUVMMinPageSizeKBytes * 1024 * 8 / p->BytePerPixel; in CalculateVMAndRowBytes()
4412 PixelPTEReqWidth_linear = p->GPUVMMinPageSizeKBytes * 1024 * 8 / p->BytePerPixel; in CalculateVMAndRowBytes()
4416 *p->vmpg_width = p->GPUVMMinPageSizeKBytes * 1024 / p->BytePerPixel; in CalculateVMAndRowBytes()
[all …]
Ddml2_core_shared_types.h1266 unsigned int BytePerPixel; member
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dml2/
Ddisplay_mode_core.c240 dml_uint_t BytePerPixel,
2455 dml_uint_t BytePerPixel, in CalculateVMAndRowBytes() argument
2512 *MetaRowByte = (dml_uint_t)(*meta_row_width * *MetaRequestHeight * BytePerPixel / 256.0); in CalculateVMAndRowBytes()
2520 *MetaRowByte = (dml_uint_t)(*meta_row_width * *MetaRequestWidth * BytePerPixel / 256.0); in CalculateVMAndRowBytes()
2531 DCCMetaSurfaceBytes = (dml_uint_t)(DCCMetaPitch * vp_height_meta_ub * BytePerPixel / 256.0); in CalculateVMAndRowBytes()
2547 MacroTileSizeBytes = MacroTileWidth * BytePerPixel * MacroTileHeight; in CalculateVMAndRowBytes()
2558 …dml_uint_t)(64 * (dml_ceil((dml_float_t) (Pitch * vp_height_dpte_ub * BytePerPixel - MacroTileSize… in CalculateVMAndRowBytes()
2571 dml_print("DML::%s: BytePerPixel = %u\n", __func__, BytePerPixel); in CalculateVMAndRowBytes()
2589 *PixelPTEReqWidth = GPUVMMinPageSizeKBytes * 1024 * 8 / BytePerPixel; in CalculateVMAndRowBytes()
2590 PixelPTEReqWidth_linear = GPUVMMinPageSizeKBytes * 1024 * 8 / BytePerPixel; in CalculateVMAndRowBytes()
[all …]