{
}
+static void
+iris_populate_sampler_key(const struct iris_context *ice,
+ struct brw_sampler_prog_key_data *key)
+{
+ for (int i = 0; i < MAX_SAMPLERS; i++) {
+ key->swizzles[i] = 0x688; /* XYZW */
+ }
+}
+
static void
iris_populate_vs_key(const struct iris_context *ice,
struct brw_vs_prog_key *key)
{
memset(key, 0, sizeof(*key));
+ iris_populate_sampler_key(ice, &key->tex);
}
static void
struct brw_tcs_prog_key *key)
{
memset(key, 0, sizeof(*key));
+ iris_populate_sampler_key(ice, &key->tex);
}
static void
struct brw_tes_prog_key *key)
{
memset(key, 0, sizeof(*key));
+ iris_populate_sampler_key(ice, &key->tex);
}
static void
struct brw_gs_prog_key *key)
{
memset(key, 0, sizeof(*key));
+ iris_populate_sampler_key(ice, &key->tex);
}
static void
struct brw_wm_prog_key *key)
{
memset(key, 0, sizeof(*key));
+ iris_populate_sampler_key(ice, &key->tex);
/* XXX: dirty flags? */
const struct pipe_framebuffer_state *fb = &ice->state.framebuffer;