summaryrefslogtreecommitdiff
path: root/src/gallium/state_trackers/glx/xlib
diff options
context:
space:
mode:
authorZack Rusin <zackr@vmware.com>2010-04-07 17:46:55 -0400
committerZack Rusin <zackr@vmware.com>2010-04-07 17:50:11 -0400
commit821abff8c03031603111abc17dabe7cfa28a31e1 (patch)
tree8def3a5f85f92382d72ad07ac9416e9d0b760e59 /src/gallium/state_trackers/glx/xlib
parent40bac07f9b5182890719151c99e9d9035e7984e7 (diff)
draw llvm: highly reduce the compilation times for draw llvm
our code resets pipe_vertex_buffer's with different offsets when rendering vbo, meaning that we kept creating insane number of shaders even for simple apps e.g. geartrain had 54 shaders and it was taking almost 27 seconds just to compile them. this patch passes pipe_vertex_buffer's to the jit function and lets it to the stride/buffer_offset computation at run time. the slowdown at runtime is largely unnoticable but the we go from 54 shaders to 3, and from 27 seconds to less than 1.
Diffstat (limited to 'src/gallium/state_trackers/glx/xlib')
0 files changed, 0 insertions, 0 deletions