mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 18:10:11 +01:00
intel/blorp: Expose surf_fake_interleaved_msaa internally
This commit is contained in:
parent
caa786e029
commit
d62ca48c31
2 changed files with 8 additions and 5 deletions
|
|
@ -1609,9 +1609,9 @@ blorp_surf_convert_to_single_slice(const struct isl_device *isl_dev,
|
||||||
info->z_offset = 0;
|
info->z_offset = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
void
|
||||||
surf_fake_interleaved_msaa(const struct isl_device *isl_dev,
|
blorp_surf_fake_interleaved_msaa(const struct isl_device *isl_dev,
|
||||||
struct brw_blorp_surface_info *info)
|
struct brw_blorp_surface_info *info)
|
||||||
{
|
{
|
||||||
assert(info->surf.msaa_layout == ISL_MSAA_LAYOUT_INTERLEAVED);
|
assert(info->surf.msaa_layout == ISL_MSAA_LAYOUT_INTERLEAVED);
|
||||||
|
|
||||||
|
|
@ -1639,7 +1639,7 @@ blorp_surf_retile_w_to_y(const struct isl_device *isl_dev,
|
||||||
*/
|
*/
|
||||||
if (isl_dev->info->gen > 6 &&
|
if (isl_dev->info->gen > 6 &&
|
||||||
info->surf.msaa_layout == ISL_MSAA_LAYOUT_INTERLEAVED) {
|
info->surf.msaa_layout == ISL_MSAA_LAYOUT_INTERLEAVED) {
|
||||||
surf_fake_interleaved_msaa(isl_dev, info);
|
blorp_surf_fake_interleaved_msaa(isl_dev, info);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isl_dev->info->gen == 6) {
|
if (isl_dev->info->gen == 6) {
|
||||||
|
|
@ -1881,7 +1881,7 @@ try_blorp_blit(struct blorp_batch *batch,
|
||||||
params->x1 = ALIGN(params->x1, 2) * px_size_sa.width;
|
params->x1 = ALIGN(params->x1, 2) * px_size_sa.width;
|
||||||
params->y1 = ALIGN(params->y1, 2) * px_size_sa.height;
|
params->y1 = ALIGN(params->y1, 2) * px_size_sa.height;
|
||||||
|
|
||||||
surf_fake_interleaved_msaa(batch->blorp->isl_dev, ¶ms->dst);
|
blorp_surf_fake_interleaved_msaa(batch->blorp->isl_dev, ¶ms->dst);
|
||||||
|
|
||||||
wm_prog_key->use_kill = true;
|
wm_prog_key->use_kill = true;
|
||||||
wm_prog_key->need_dst_offset = true;
|
wm_prog_key->need_dst_offset = true;
|
||||||
|
|
|
||||||
|
|
@ -84,6 +84,9 @@ blorp_surf_convert_to_uncompressed(const struct isl_device *isl_dev,
|
||||||
uint32_t *x, uint32_t *y,
|
uint32_t *x, uint32_t *y,
|
||||||
uint32_t *width, uint32_t *height);
|
uint32_t *width, uint32_t *height);
|
||||||
void
|
void
|
||||||
|
blorp_surf_fake_interleaved_msaa(const struct isl_device *isl_dev,
|
||||||
|
struct brw_blorp_surface_info *info);
|
||||||
|
void
|
||||||
blorp_surf_retile_w_to_y(const struct isl_device *isl_dev,
|
blorp_surf_retile_w_to_y(const struct isl_device *isl_dev,
|
||||||
struct brw_blorp_surface_info *info);
|
struct brw_blorp_surface_info *info);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue