struct vc4_key {
struct pipe_shader_state *shader_state;
- enum pipe_format tex_format[VC4_MAX_TEXTURE_SAMPLERS];
+ struct {
+ enum pipe_format format;
+ } tex[VC4_MAX_TEXTURE_SAMPLERS];
};
struct vc4_fs_key {
c->num_texture_samples++;
struct qreg r4 = qir_TEX_RESULT(c);
- enum pipe_format format = c->key->tex_format[unit];
+ enum pipe_format format = c->key->tex[unit].format;
struct qreg unpacked[4];
if (util_format_is_depth_or_stencil(format)) {
struct pipe_sampler_view *sampler = texstate->textures[i];
if (sampler) {
struct pipe_resource *prsc = sampler->texture;
- key->tex_format[i] = prsc->format;
+ key->tex[i].format = prsc->format;
}
}
}