mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-14 18:48:05 +02:00
radv: do not force enable FMASK during MSAA blits
This is no longer needed since FMASK is also compressed for transfer dst operations. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9940>
This commit is contained in:
parent
6dbf975cb9
commit
fc2186d302
2 changed files with 1 additions and 24 deletions
|
|
@ -1654,8 +1654,7 @@ radv_emit_fb_color_state(struct radv_cmd_buffer *cmd_buffer,
|
|||
|
||||
if (radv_image_has_fmask(image) &&
|
||||
(radv_is_fmask_decompress_pipeline(cmd_buffer) ||
|
||||
radv_is_hw_resolve_pipeline(cmd_buffer) ||
|
||||
radv_is_blit2d_msaa_pipeline(cmd_buffer))) {
|
||||
radv_is_hw_resolve_pipeline(cmd_buffer))) {
|
||||
/* Make sure FMASK is enabled if it has been cleared because:
|
||||
*
|
||||
* 1) it's required for FMASK_DECOMPRESS operations to avoid
|
||||
|
|
|
|||
|
|
@ -303,28 +303,6 @@ radv_is_hw_resolve_pipeline(struct radv_cmd_buffer *cmd_buffer)
|
|||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return whether the bound pipeline is a blit MSAA image pipeline.
|
||||
*/
|
||||
static inline bool
|
||||
radv_is_blit2d_msaa_pipeline(struct radv_cmd_buffer *cmd_buffer)
|
||||
{
|
||||
struct radv_meta_state *meta_state = &cmd_buffer->device->meta_state;
|
||||
struct radv_pipeline *pipeline = cmd_buffer->state.pipeline;
|
||||
|
||||
if (!pipeline)
|
||||
return false;
|
||||
|
||||
for (uint32_t s = 1; s < MAX_SAMPLES_LOG2; s++) {
|
||||
for (uint32_t i = 0; i < NUM_META_FS_KEYS; i++) {
|
||||
if (radv_pipeline_to_handle(pipeline) == meta_state->blit2d[s].pipelines[0 /* IMAGE */][i] ||
|
||||
radv_pipeline_to_handle(pipeline) == meta_state->blit2d[s].pipelines[1 /* IMAGE_3D */][i])
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/* common nir builder helpers */
|
||||
#include "nir/nir_builder.h"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue