[GPU] Fix host_depth_store_2xmsaa CS after 2x MSAA sample swap
This commit is contained in:
@@ -4604,11 +4604,8 @@ void D3D12RenderTargetCache::PerformTransfersAndResolveClears(
|
||||
dest_rt_key.pitch_tiles_at_32bpp;
|
||||
host_depth_store_render_target_constant.resolution_scale =
|
||||
resolution_scale_;
|
||||
host_depth_store_render_target_constant.second_sample_index =
|
||||
(dest_rt_key.msaa_samples == xenos::MsaaSamples::k2X &&
|
||||
!msaa_2x_supported_)
|
||||
? 3
|
||||
: 1;
|
||||
host_depth_store_render_target_constant.msaa_2x_supported =
|
||||
uint32_t(msaa_2x_supported_);
|
||||
command_list.D3DSetComputeRoot32BitConstants(
|
||||
kHostDepthStoreRootParameterRenderTargetConstant,
|
||||
sizeof(host_depth_store_render_target_constant) / sizeof(uint32_t),
|
||||
|
||||
@@ -536,8 +536,8 @@ class D3D12RenderTargetCache final : public RenderTargetCache {
|
||||
uint32_t pitch_tiles : xenos::kEdramPitchTilesBits;
|
||||
// 1 to 3.
|
||||
uint32_t resolution_scale : 2;
|
||||
// For native 2x MSAA vs. 2x over 4x.
|
||||
uint32_t second_sample_index : 2;
|
||||
// Whether 2x MSAA is supported natively rather than through 4x.
|
||||
uint32_t msaa_2x_supported : 1;
|
||||
};
|
||||
uint32_t constant = 0;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user