aboutsummaryrefslogtreecommitdiff
path: root/src/shader_recompiler/backend/glsl/var_alloc.h
diff options
context:
space:
mode:
authorameerj <52414509+ameerj@users.noreply.github.com>2021-06-07 18:04:01 -0400
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-22 21:51:37 -0400
commit258106038e921de6863d3e871a82fb7a0c77f10d (patch)
tree31079d1db5089646912fed49b4e075dbaaaa3b25 /src/shader_recompiler/backend/glsl/var_alloc.h
parent465903468e29ee93845d69bf56273a562dd01242 (diff)
glsl: Allow dynamic tracking of variable allocation
Diffstat (limited to 'src/shader_recompiler/backend/glsl/var_alloc.h')
-rw-r--r--src/shader_recompiler/backend/glsl/var_alloc.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/shader_recompiler/backend/glsl/var_alloc.h b/src/shader_recompiler/backend/glsl/var_alloc.h
index ed936f8dc2..ab1d1acbde 100644
--- a/src/shader_recompiler/backend/glsl/var_alloc.h
+++ b/src/shader_recompiler/backend/glsl/var_alloc.h
@@ -57,11 +57,10 @@ static_assert(sizeof(Id) == sizeof(u32));
class VarAlloc {
public:
- static constexpr size_t NUM_VARS = 1023;
struct UseTracker {
- size_t num_used{};
- std::bitset<NUM_VARS> var_use{};
bool uses_temp{};
+ size_t num_used{};
+ std::vector<bool> var_use;
};
/// Used for explicit usages of variables, may revert to temporaries