Closed AMD-dwang closed 11 months ago
Should this really only be done for color export shaders? It feels like we should rather do this unconditionally in GlueShader, or perhaps conditional on the hash bytes being non-zero.
Yes, it is only for color export shader. For glue shader, it is essentially PS, and internal pipeline hash has been added in fragment shader.
Right. The real problem here is to have a mysteriously-named internalCompile
method. The name doesn't say anything.
If you want to keep the hash setting in ColorExportShader, can it be moved to the main build method?
That's okay. Will update it. Thanks.
/jenkins/workspace/vulkan/sanitized-opensource/Github-PR/llpc-github-pr/driver_build/drivers/llpc/lgc/disassembler/Disassembler.cpp:677:30: error: ‘little’ is not a member of ‘llvm::support’; did you mean ‘little_t’?
677 | if (endian() == support::little)
| ^~
| little_t
/jenkins/workspace/vulkan/sanitized-opensource/Github-PR/llpc-github-pr/driver_build/drivers/llpc/lgc/disassembler/Disassembler.cpp: In member function ‘size_t {anonymous}::ObjDisassembler::decodeNote(llvm::StringRef)’:
/jenkins/workspace/vulkan/sanitized-opensource/Github-PR/llpc-github-pr/driver_build/drivers/llpc/lgc/disassembler/Disassembler.cpp:794:60: error: ‘endian’ was not declared in this scope
794 | unsigned nameSize = support::endian::read32(data.data(), endian());
| ^~
/jenkins/workspace/vulkan/sanitized-opensource/Github-PR/llpc-github-pr/driver_build/drivers/llpc/lgc/disassembler/Disassembler.cpp:794:60: note: suggested alternatives:
In file included from /usr/include/c++/9/memory:93,
from /jenkins/workspace/vulkan/sanitized-opensource/Github-PR/llpc-github-pr/driver_build/drivers/llvm-project/llvm/include/llvm/ADT/SmallVector.h:28,
Failures: ``` FAILURE: dEQP-VK.sparse_resources.device_group_mipmap_sparse_residency.2d.rg8i.512_256_1 Stack trace: Flake ```
retest this please
Add internal pipeline hash for color export shader.