static void
swr_generate_sampler_key(const struct lp_tgsi_info &info,
struct swr_context *ctx,
- unsigned shader_type,
+ enum pipe_shader_type shader_type,
struct swr_jit_sampler_key &key)
{
key.nr_samplers = info.base.file_max[TGSI_FILE_SAMPLER] + 1;
static void
swr_update_texture_state(struct swr_context *ctx,
- unsigned shader_type,
+ enum pipe_shader_type shader_type,
unsigned num_sampler_views,
swr_jit_texture *textures)
{
static void
swr_update_sampler_state(struct swr_context *ctx,
- unsigned shader_type,
+ enum pipe_shader_type shader_type,
unsigned num_samplers,
swr_jit_sampler *samplers)
{
const struct swr_sampler_static_state *static_state;
- unsigned shader_type;
+ enum pipe_shader_type shader_type;
};
struct lp_build_sampler_soa *
swr_sampler_soa_create(const struct swr_sampler_static_state *static_state,
- unsigned shader_type)
+ enum pipe_shader_type shader_type)
{
struct swr_sampler_soa *sampler;
*
*/
struct lp_build_sampler_soa *
-swr_sampler_soa_create(const struct swr_sampler_static_state *key, unsigned shader_type);
+swr_sampler_soa_create(const struct swr_sampler_static_state *key,
+ enum pipe_shader_type shader_type);