aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/llvmpipe/lp_state_cs.h
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2019-08-27 15:17:29 +1000
committerDave Airlie <[email protected]>2019-09-04 15:22:20 +1000
commit6ea8e9b415b31aede0c337bba0591271b9253c27 (patch)
treecf39ad29615250c8c9b74446afca9f78447f15eb /src/gallium/drivers/llvmpipe/lp_state_cs.h
parent4ca40cc3dcbf34988fd614d8539938ffb17ce8ea (diff)
llvmpipe: add compute sampler + sampler view support.
This is ported from the fragment shader code. Reviewed-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_state_cs.h')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_state_cs.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_state_cs.h b/src/gallium/drivers/llvmpipe/lp_state_cs.h
index 35c8f75ae6a..031c1d317ea 100644
--- a/src/gallium/drivers/llvmpipe/lp_state_cs.h
+++ b/src/gallium/drivers/llvmpipe/lp_state_cs.h
@@ -31,13 +31,17 @@
#include "pipe/p_state.h"
#include "gallivm/lp_bld.h"
-#include "gallivm/lp_bld_tgsi.h" /* for lp_tgsi_info */
+#include "gallivm/lp_bld_sample.h" /* for struct lp_sampler_static_state */
#include "lp_jit.h"
+#include "lp_state_fs.h"
struct lp_compute_shader_variant;
struct lp_compute_shader_variant_key
{
+ unsigned nr_samplers:8;
+ unsigned nr_sampler_views:8;
+ struct lp_sampler_static_state state[PIPE_MAX_SHADER_SAMPLER_VIEWS];
};
struct lp_cs_variant_list_item
@@ -92,6 +96,8 @@ struct lp_cs_context {
struct {
struct lp_cs_exec current;
+ struct pipe_resource *current_tex[PIPE_MAX_SHADER_SAMPLER_VIEWS];
+ unsigned current_tex_num;
} cs;
/** compute shader constants */