diff options
author | Brian Paul <brianp@vmware.com> | 2010-07-29 13:49:21 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2010-07-29 17:25:54 -0600 |
commit | ba2cc3b8e6ad161181b67fd2575c6bc768584d23 (patch) | |
tree | bdf82dfc3e06fd305e6161575830374a4c6101ab /src/gallium/auxiliary/draw/draw_vs_llvm.c | |
parent | 8a2933f3663177f32f5ee45bb696463b8549dcbb (diff) | |
download | external_mesa3d-ba2cc3b8e6ad161181b67fd2575c6bc768584d23.zip external_mesa3d-ba2cc3b8e6ad161181b67fd2575c6bc768584d23.tar.gz external_mesa3d-ba2cc3b8e6ad161181b67fd2575c6bc768584d23.tar.bz2 |
gallium: implement bounds checking for constant buffers
Plumb the constant buffer sizes down into the tgsi interpreter where
we can do bounds checking. Optional debug code warns upon out-of-bounds
reading. Plus add a few other assertions in the TGSI interpreter.
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_vs_llvm.c')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_vs_llvm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/draw/draw_vs_llvm.c b/src/gallium/auxiliary/draw/draw_vs_llvm.c index 6c13df7..d13ad24 100644 --- a/src/gallium/auxiliary/draw/draw_vs_llvm.c +++ b/src/gallium/auxiliary/draw/draw_vs_llvm.c @@ -49,6 +49,7 @@ vs_llvm_run_linear( struct draw_vertex_shader *shader, const float (*input)[4], float (*output)[4], const void *constants[PIPE_MAX_CONSTANT_BUFFERS], + const unsigned constants_size[PIPE_MAX_CONSTANT_BUFFERS], unsigned count, unsigned input_stride, unsigned output_stride ) |