Skip to content

Commit aa8ac6e

Browse files
committed
SCacheKey forgot to commit this file
1 parent 025968e commit aa8ac6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/nbl/video/IOpenGL_LogicalDevice.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,7 @@ class IOpenGL_LogicalDevice : public ILogicalDevice, protected impl::IOpenGL_Log
875875
uint32_t ix = core::findLSB<uint32_t>(stage);
876876
assert(ix < COpenGLRenderpassIndependentPipeline::SHADER_STAGE_COUNT);
877877

878-
COpenGLPipelineCache::SCacheKey key{ glshdr->getSpirvHash(), glshdr->getSpecializationInfo(), core::smart_refctd_ptr_static_cast<COpenGLPipelineLayout>(layout) };
878+
COpenGLPipelineCache::SCacheKey key{ glshdr->getSpirvHash(), glshdr->getSpecializationInfo(), core::smart_refctd_ptr_static_cast<COpenGLPipelineLayout>(layout), stage };
879879
auto bin = cache ? cache->find(key) : COpenGLSpecializedShader::SProgramBinary{ 0,nullptr };
880880
if (bin.binary)
881881
{
@@ -932,7 +932,7 @@ class IOpenGL_LogicalDevice : public ILogicalDevice, protected impl::IOpenGL_Log
932932
auto layout = core::smart_refctd_ptr_static_cast<COpenGLPipelineLayout>(params.layout);
933933
auto glshdr = core::smart_refctd_ptr_static_cast<COpenGLSpecializedShader>(params.shader);
934934

935-
COpenGLPipelineCache::SCacheKey key{ glshdr->getSpirvHash(), glshdr->getSpecializationInfo(), layout };
935+
COpenGLPipelineCache::SCacheKey key{ glshdr->getSpirvHash(), glshdr->getSpecializationInfo(), layout, asset::IShader::ESS_COMPUTE };
936936
auto bin = cache ? cache->find(key) : COpenGLSpecializedShader::SProgramBinary{ 0,nullptr };
937937
if (bin.binary)
938938
{

0 commit comments

Comments
 (0)