File tree Expand file tree Collapse file tree 2 files changed +2
-10
lines changed
src/video_core/renderer_vulkan Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -260,7 +260,7 @@ bool PipelineCache::RefreshGraphicsKey() {
260
260
// recompiler.
261
261
for (auto cb = 0u , remapped_cb = 0u ; cb < Liverpool::NumColorBuffers; ++cb) {
262
262
auto const & col_buf = regs.color_buffers [cb];
263
- if (skip_cb_binding || !col_buf || !regs. color_target_mask . GetMask (cb) ) {
263
+ if (skip_cb_binding || !col_buf) {
264
264
continue ;
265
265
}
266
266
const auto base_format =
@@ -362,8 +362,7 @@ bool PipelineCache::RefreshGraphicsKey() {
362
362
// Second pass to fill remain CB pipeline key data
363
363
for (auto cb = 0u , remapped_cb = 0u ; cb < Liverpool::NumColorBuffers; ++cb) {
364
364
auto const & col_buf = regs.color_buffers [cb];
365
- if (skip_cb_binding || !col_buf || !regs.color_target_mask .GetMask (cb) ||
366
- (key.mrt_mask & (1u << cb)) == 0 ) {
365
+ if (skip_cb_binding || !col_buf || (key.mrt_mask & (1u << cb)) == 0 ) {
367
366
key.color_formats [cb] = vk::Format::eUndefined;
368
367
key.mrt_swizzles [cb] = Liverpool::ColorBuffer::SwapMode::Standard;
369
368
continue ;
Original file line number Diff line number Diff line change @@ -95,13 +95,6 @@ RenderState Rasterizer::PrepareRenderState(u32 mrt_mask) {
95
95
continue ;
96
96
}
97
97
98
- // If the color buffer is still bound but rendering to it is disabled by the target
99
- // mask, we need to prevent the render area from being affected by unbound render target
100
- // extents.
101
- if (!regs.color_target_mask .GetMask (col_buf_id)) {
102
- continue ;
103
- }
104
-
105
98
// Skip stale color buffers if shader doesn't output to them. Otherwise it will perform
106
99
// an unnecessary transition and may result in state conflict if the resource is already
107
100
// bound for reading.
You can’t perform that action at this time.
0 commit comments