Temporarily disable shader JIT by default
This commit is contained in:
@@ -80,13 +80,15 @@ void GPU::reset() {
|
|||||||
// Call the correct version of drawArrays based on whether this is an indexed draw (first template parameter)
|
// Call the correct version of drawArrays based on whether this is an indexed draw (first template parameter)
|
||||||
// And whether we are going to use the shader JIT (second template parameter)
|
// And whether we are going to use the shader JIT (second template parameter)
|
||||||
void GPU::drawArrays(bool indexed) {
|
void GPU::drawArrays(bool indexed) {
|
||||||
|
constexpr bool shaderJITEnabled = false; // TODO: Make a configurable option
|
||||||
|
|
||||||
if (indexed) {
|
if (indexed) {
|
||||||
if constexpr (ShaderJIT::isAvailable())
|
if constexpr (ShaderJIT::isAvailable() && shaderJITEnabled)
|
||||||
drawArrays<true, true>();
|
drawArrays<true, true>();
|
||||||
else
|
else
|
||||||
drawArrays<true, false>();
|
drawArrays<true, false>();
|
||||||
} else {
|
} else {
|
||||||
if constexpr (ShaderJIT::isAvailable())
|
if constexpr (ShaderJIT::isAvailable() && shaderJITEnabled)
|
||||||
drawArrays<false, true>();
|
drawArrays<false, true>();
|
||||||
else
|
else
|
||||||
drawArrays<false, false>();
|
drawArrays<false, false>();
|
||||||
|
|||||||
Reference in New Issue
Block a user