Workaround qualcomm driver bug

It seems it doesn't like modifying inout variables in place - so instead
use a temporary for ocol0/ocol1 and only write them once at the end of
the shader
This commit is contained in:
Jonathan Hamilton
2017-11-09 17:39:09 -08:00
parent 29a9ed043b
commit 8d68adcaf3
2 changed files with 10 additions and 4 deletions

View File

@ -890,7 +890,7 @@ void ProgramShaderCache::CreateHeader()
{
case ES_FB_FETCH_TYPE::FB_FETCH_EXT:
framebuffer_fetch_string = "#extension GL_EXT_shader_framebuffer_fetch: enable\n"
"#define FB_FETCH_VALUE ocol0\n"
"#define FB_FETCH_VALUE real_ocol0\n"
"#define FRAGMENT_INOUT inout";
break;
case ES_FB_FETCH_TYPE::FB_FETCH_ARM: