video_core: vk_rasterizer: fix for crash on markers with nullGpu
This commit is contained in:
parent
2a737d0800
commit
6fd4264b5d
|
@ -243,7 +243,7 @@ void Rasterizer::UpdateDepthStencilState() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Rasterizer::ScopeMarkerBegin(const std::string_view& str) {
|
void Rasterizer::ScopeMarkerBegin(const std::string_view& str) {
|
||||||
if (!Config::isMarkersEnabled()) {
|
if (Config::nullGpu() || !Config::isMarkersEnabled()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -254,7 +254,7 @@ void Rasterizer::ScopeMarkerBegin(const std::string_view& str) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Rasterizer::ScopeMarkerEnd() {
|
void Rasterizer::ScopeMarkerEnd() {
|
||||||
if (!Config::isMarkersEnabled()) {
|
if (Config::nullGpu() || !Config::isMarkersEnabled()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -263,7 +263,7 @@ void Rasterizer::ScopeMarkerEnd() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Rasterizer::ScopedMarkerInsert(const std::string_view& str) {
|
void Rasterizer::ScopedMarkerInsert(const std::string_view& str) {
|
||||||
if (!Config::isMarkersEnabled()) {
|
if (Config::nullGpu() || !Config::isMarkersEnabled()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -274,7 +274,7 @@ void Rasterizer::ScopedMarkerInsert(const std::string_view& str) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Rasterizer::Breadcrumb(u64 id) {
|
void Rasterizer::Breadcrumb(u64 id) {
|
||||||
if (!instance.HasNvCheckpoints()) {
|
if (Config::nullGpu() || !instance.HasNvCheckpoints()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
scheduler.CommandBuffer().setCheckpointNV(id);
|
scheduler.CommandBuffer().setCheckpointNV(id);
|
||||||
|
|
Loading…
Reference in New Issue