Module: Mesa Branch: master Commit: 0f001fbff1d8c982a4c606d9fbe93619d64a5acc URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0f001fbff1d8c982a4c606d9fbe93619d64a5acc
Author: Christian König <[email protected]> Date: Sun Mar 24 16:24:52 2013 +0100 glsl_to_tgsi: avoid creating arrays if driver doesn't support them Avoid creating arrays if we replace indirect addressing anyway. Signed-off-by: Christian König <[email protected]> --- src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp index 0885564..e728f79 100644 --- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp +++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp @@ -1009,7 +1009,9 @@ glsl_to_tgsi_visitor::get_temp(const glsl_type *type) src.reladdr = NULL; src.negate = 0; - if (type->is_array() || type->is_matrix()) { + if (!options->EmitNoIndirectTemp && + (type->is_array() || type->is_matrix())) { + src.file = PROGRAM_ARRAY; src.index = next_array << 16 | 0x8000; array_sizes[next_array] = type_size(type); _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
