diff options
author | Roland Scheidegger <sroland@vmware.com> | 2014-08-28 05:13:35 +0200 |
---|---|---|
committer | Roland Scheidegger <sroland@vmware.com> | 2014-08-30 01:34:16 +0200 |
commit | 3d29e75a5f59639c3b9dfed26cd41ab13c0d60fc (patch) | |
tree | dc790305a13bb0f46f3dc464db8ab2c42d40e9fc /src/gallium/drivers/softpipe/sp_state.h | |
parent | 62fd87198432f3eac7b36fee4dfa2568cc1a5aad (diff) | |
download | external_mesa3d-3d29e75a5f59639c3b9dfed26cd41ab13c0d60fc.zip external_mesa3d-3d29e75a5f59639c3b9dfed26cd41ab13c0d60fc.tar.gz external_mesa3d-3d29e75a5f59639c3b9dfed26cd41ab13c0d60fc.tar.bz2 |
softpipe: handle vertex texture sampling when using llvm for draw
Pretty trivial, just fill in the offsets and such. The implementation
is near 100% copy and paste from llvmpipe. Should be useful for debugging.
No piglit change when not using SOFTPIPE_USE_LLVM=1.
Now that it can do the same tests with and without using llvm for vs/gs,
with llvm more pass, the only things failing only with llvm seems to be
edgeflags tests and vs/gs-pow-float-float (and for the latter I'm not
convinced the zero tolerance it requires is somehow mandated by glsl).
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Diffstat (limited to 'src/gallium/drivers/softpipe/sp_state.h')
-rw-r--r-- | src/gallium/drivers/softpipe/sp_state.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/gallium/drivers/softpipe/sp_state.h b/src/gallium/drivers/softpipe/sp_state.h index 775a1f5..c35534c 100644 --- a/src/gallium/drivers/softpipe/sp_state.h +++ b/src/gallium/drivers/softpipe/sp_state.h @@ -192,5 +192,20 @@ softpipe_find_fs_variant(struct softpipe_context *softpipe, struct sp_fragment_shader *fs, const struct sp_fragment_shader_variant_key *key); +void +softpipe_prepare_vertex_sampling(struct softpipe_context *ctx, + unsigned num, + struct pipe_sampler_view **views); +void +softpipe_cleanup_vertex_sampling(struct softpipe_context *ctx); + + +void +softpipe_prepare_geometry_sampling(struct softpipe_context *ctx, + unsigned num, + struct pipe_sampler_view **views); +void +softpipe_cleanup_geometry_sampling(struct softpipe_context *ctx); + #endif |