spirv: Drop the sampled boolean from vtn_type
It was set but never used. We always check the glsl_type instead. Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5278>
This commit is contained in:
@@ -1432,11 +1432,9 @@ vtn_handle_type(struct vtn_builder *b, SpvOp opcode,
|
||||
enum glsl_base_type sampled_base_type =
|
||||
glsl_get_base_type(sampled_type->type);
|
||||
if (sampled == 1) {
|
||||
val->type->sampled = true;
|
||||
val->type->type = glsl_sampler_type(dim, false, is_array,
|
||||
sampled_base_type);
|
||||
} else if (sampled == 2) {
|
||||
val->type->sampled = false;
|
||||
val->type->type = glsl_image_type(dim, is_array, sampled_base_type);
|
||||
} else {
|
||||
vtn_fail("We need to know if the image will be sampled");
|
||||
|
@@ -401,9 +401,6 @@ struct vtn_type {
|
||||
|
||||
/* Members for image types */
|
||||
struct {
|
||||
/* For images, indicates whether it's sampled or storage */
|
||||
bool sampled;
|
||||
|
||||
/* Image format for image_load_store type images */
|
||||
unsigned image_format;
|
||||
|
||||
|
Reference in New Issue
Block a user