diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/texture_cache/texture_cache.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/video_core/texture_cache/texture_cache.h b/src/video_core/texture_cache/texture_cache.h index 255b07cf8..f34c9d9ca 100644 --- a/src/video_core/texture_cache/texture_cache.h +++ b/src/video_core/texture_cache/texture_cache.h | |||
| @@ -548,13 +548,13 @@ void TextureCache<P>::FillComputeImageViews(std::span<const u32> indices, | |||
| 548 | 548 | ||
| 549 | template <class P> | 549 | template <class P> |
| 550 | typename P::Sampler* TextureCache<P>::GetGraphicsSampler(u32 index) { | 550 | typename P::Sampler* TextureCache<P>::GetGraphicsSampler(u32 index) { |
| 551 | [[unlikely]] if (index > graphics_sampler_table.Limit()) { | 551 | if (index > graphics_sampler_table.Limit()) { |
| 552 | LOG_ERROR(HW_GPU, "Invalid sampler index={}", index); | 552 | LOG_DEBUG(HW_GPU, "Invalid sampler index={}", index); |
| 553 | return &slot_samplers[NULL_SAMPLER_ID]; | 553 | return &slot_samplers[NULL_SAMPLER_ID]; |
| 554 | } | 554 | } |
| 555 | const auto [descriptor, is_new] = graphics_sampler_table.Read(index); | 555 | const auto [descriptor, is_new] = graphics_sampler_table.Read(index); |
| 556 | SamplerId& id = graphics_sampler_ids[index]; | 556 | SamplerId& id = graphics_sampler_ids[index]; |
| 557 | [[unlikely]] if (is_new) { | 557 | if (is_new) { |
| 558 | id = FindSampler(descriptor); | 558 | id = FindSampler(descriptor); |
| 559 | } | 559 | } |
| 560 | return &slot_samplers[id]; | 560 | return &slot_samplers[id]; |
| @@ -562,13 +562,13 @@ typename P::Sampler* TextureCache<P>::GetGraphicsSampler(u32 index) { | |||
| 562 | 562 | ||
| 563 | template <class P> | 563 | template <class P> |
| 564 | typename P::Sampler* TextureCache<P>::GetComputeSampler(u32 index) { | 564 | typename P::Sampler* TextureCache<P>::GetComputeSampler(u32 index) { |
| 565 | [[unlikely]] if (index > compute_sampler_table.Limit()) { | 565 | if (index > compute_sampler_table.Limit()) { |
| 566 | LOG_ERROR(HW_GPU, "Invalid sampler index={}", index); | 566 | LOG_DEBUG(HW_GPU, "Invalid sampler index={}", index); |
| 567 | return &slot_samplers[NULL_SAMPLER_ID]; | 567 | return &slot_samplers[NULL_SAMPLER_ID]; |
| 568 | } | 568 | } |
| 569 | const auto [descriptor, is_new] = compute_sampler_table.Read(index); | 569 | const auto [descriptor, is_new] = compute_sampler_table.Read(index); |
| 570 | SamplerId& id = compute_sampler_ids[index]; | 570 | SamplerId& id = compute_sampler_ids[index]; |
| 571 | [[unlikely]] if (is_new) { | 571 | if (is_new) { |
| 572 | id = FindSampler(descriptor); | 572 | id = FindSampler(descriptor); |
| 573 | } | 573 | } |
| 574 | return &slot_samplers[id]; | 574 | return &slot_samplers[id]; |
| @@ -669,7 +669,7 @@ ImageViewId TextureCache<P>::VisitImageView(DescriptorTable<TICEntry>& table, | |||
| 669 | std::span<ImageViewId> cached_image_view_ids, | 669 | std::span<ImageViewId> cached_image_view_ids, |
| 670 | u32 index) { | 670 | u32 index) { |
| 671 | if (index > table.Limit()) { | 671 | if (index > table.Limit()) { |
| 672 | LOG_ERROR(HW_GPU, "Invalid image view index={}", index); | 672 | LOG_DEBUG(HW_GPU, "Invalid image view index={}", index); |
| 673 | return NULL_IMAGE_VIEW_ID; | 673 | return NULL_IMAGE_VIEW_ID; |
| 674 | } | 674 | } |
| 675 | const auto [descriptor, is_new] = table.Read(index); | 675 | const auto [descriptor, is_new] = table.Read(index); |