Mesa (master): st_glsl_to_tgsi: cleanup variable storage search.
Dave Airlie
airlied at kemper.freedesktop.org
Thu Jun 8 03:29:49 UTC 2017
Module: Mesa
Branch: master
Commit: cb2a13e895adbbaa3a759abdcf6fbb89bb1523fe
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=cb2a13e895adbbaa3a759abdcf6fbb89bb1523fe
Author: Dave Airlie <airlied at redhat.com>
Date: Thu Jun 8 13:27:46 2017 +1000
st_glsl_to_tgsi: cleanup variable storage search.
I forgot to put the cleanup in earlier.
Signed-off-by: Dave Airlie <airlied at redhat.com>
---
src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
index a0d593df92..c5d2e0fcd2 100644
--- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
+++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
@@ -1310,15 +1310,13 @@ glsl_to_tgsi_visitor::get_temp(const glsl_type *type)
variable_storage *
glsl_to_tgsi_visitor::find_variable_storage(ir_variable *var)
{
- struct hash_entry *entry = _mesa_hash_table_search(this->variables,
- var);
- variable_storage *storage;
+ struct hash_entry *entry;
+
+ entry = _mesa_hash_table_search(this->variables, var);
if (!entry)
return NULL;
- storage = (variable_storage *)entry->data;
-
- return storage;
+ return (variable_storage *)entry->data;
}
void
More information about the mesa-commit
mailing list