diff options
| author | Zack Rusin <zackr@vmware.com> | 2014-04-23 17:06:13 -0400 |
|---|---|---|
| committer | Zack Rusin <zackr@vmware.com> | 2014-04-24 13:59:24 -0400 |
| commit | 1c73e919a4b4dd79166d0633075990056f27fd28 (patch) | |
| tree | 0a8295b69c5cba74760fa28bea7abab4bb7a618c /src/gallium/auxiliary/draw/draw_vs_exec.c | |
| parent | 552a8e44a92937a6ec6db05f4bea583245431b71 (diff) | |
| download | external_mesa3d-1c73e919a4b4dd79166d0633075990056f27fd28.tar.gz external_mesa3d-1c73e919a4b4dd79166d0633075990056f27fd28.tar.bz2 external_mesa3d-1c73e919a4b4dd79166d0633075990056f27fd28.zip | |
draw/llvm: reduce memory usage
Lets make draw_get_option_use_llvm function available unconditionally
and use it to avoid useless allocations when LLVM paths are active.
TGSI machine is never used when we're using LLVM.
Signed-off-by: Zack Rusin <zackr@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Reviewed-by: José Fonseca <jfonseca@vmware.com>
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_vs_exec.c')
| -rw-r--r-- | src/gallium/auxiliary/draw/draw_vs_exec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/draw/draw_vs_exec.c b/src/gallium/auxiliary/draw/draw_vs_exec.c index 133b116a49..6a18d8c46b 100644 --- a/src/gallium/auxiliary/draw/draw_vs_exec.c +++ b/src/gallium/auxiliary/draw/draw_vs_exec.c @@ -63,6 +63,7 @@ vs_exec_prepare( struct draw_vertex_shader *shader, { struct exec_vertex_shader *evs = exec_vertex_shader(shader); + debug_assert(!draw_get_option_use_llvm()); /* Specify the vertex program to interpret/execute. * Avoid rebinding when possible. */ @@ -96,6 +97,7 @@ vs_exec_run_linear( struct draw_vertex_shader *shader, unsigned slot; boolean clamp_vertex_color = shader->draw->rasterizer->clamp_vertex_color; + debug_assert(!draw_get_option_use_llvm()); tgsi_exec_set_constant_buffers(machine, PIPE_MAX_CONSTANT_BUFFERS, constants, const_size); |
