mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-13 19:29:14 +01:00
[dxvk] Don't redundantly reset spec constant values
No longer needed.
This commit is contained in:
parent
ec7de66419
commit
10e6d0ef8a
@ -105,10 +105,6 @@ namespace dxvk {
|
||||
(imageExtent.height / 8) + (imageExtent.height % 8),
|
||||
1);
|
||||
|
||||
// Reset the spec constants used...
|
||||
if (specConstantValue)
|
||||
m_context->setSpecConstant(VK_PIPELINE_BIND_POINT_COMPUTE, 0, 0);
|
||||
|
||||
m_transferCommands += 1;
|
||||
}
|
||||
|
||||
|
@ -213,8 +213,6 @@ namespace dxvk {
|
||||
ctx->setSpecConstant(VK_PIPELINE_BIND_POINT_GRAPHICS, 0, srcView->imageInfo().sampleCount);
|
||||
ctx->setSpecConstant(VK_PIPELINE_BIND_POINT_GRAPHICS, 1, m_gammaView != nullptr);
|
||||
ctx->draw(3, 1, 0, 0);
|
||||
ctx->setSpecConstant(VK_PIPELINE_BIND_POINT_GRAPHICS, 0, 0);
|
||||
ctx->setSpecConstant(VK_PIPELINE_BIND_POINT_GRAPHICS, 1, 0);
|
||||
}
|
||||
|
||||
void DxvkSwapchainBlitter::resolve(
|
||||
|
@ -66,7 +66,6 @@ namespace dxvk::hud {
|
||||
VkExtent2D surfaceSize) {
|
||||
this->setupRendererState(ctx, surfaceFormat, surfaceSize);
|
||||
this->renderHudElements(ctx);
|
||||
this->resetRendererState(ctx);
|
||||
}
|
||||
|
||||
|
||||
@ -102,11 +101,6 @@ namespace dxvk::hud {
|
||||
}
|
||||
|
||||
|
||||
void Hud::resetRendererState(const Rc<DxvkContext>& ctx) {
|
||||
ctx->setSpecConstant(VK_PIPELINE_BIND_POINT_GRAPHICS, 0, 0);
|
||||
}
|
||||
|
||||
|
||||
void Hud::renderHudElements(const Rc<DxvkContext>& ctx) {
|
||||
m_hudItems.render(m_renderer);
|
||||
}
|
||||
|
@ -90,9 +90,6 @@ namespace dxvk::hud {
|
||||
VkSurfaceFormatKHR surfaceFormat,
|
||||
VkExtent2D surfaceSize);
|
||||
|
||||
void resetRendererState(
|
||||
const Rc<DxvkContext>& ctx);
|
||||
|
||||
void renderHudElements(
|
||||
const Rc<DxvkContext>& ctx);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user