From 07ff56791dd5e6ea0ab9f8146c63876e96b4e91e Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Mon, 3 Sep 2018 18:07:45 +0100 Subject: [PATCH] intel/compiler: remove unused get_image_base_type() Unused since 09f1de97a76a4990fd7c "anv,i965: Lower away image derefs in the driver". Cc: Jason Ekstrand Signed-off-by: Eric Engestrom Acked-by: Jason Ekstrand --- src/intel/compiler/brw_fs_nir.cpp | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/intel/compiler/brw_fs_nir.cpp b/src/intel/compiler/brw_fs_nir.cpp index e5215bad942..ab915ee0a2d 100644 --- a/src/intel/compiler/brw_fs_nir.cpp +++ b/src/intel/compiler/brw_fs_nir.cpp @@ -1712,25 +1712,6 @@ fs_visitor::emit_percomp(const fs_builder &bld, const fs_inst &inst, } } -/** - * Get the matching channel register datatype for an image intrinsic of the - * specified GLSL image type. - */ -static brw_reg_type -get_image_base_type(const glsl_type *type) -{ - switch ((glsl_base_type)type->sampled_type) { - case GLSL_TYPE_UINT: - return BRW_REGISTER_TYPE_UD; - case GLSL_TYPE_INT: - return BRW_REGISTER_TYPE_D; - case GLSL_TYPE_FLOAT: - return BRW_REGISTER_TYPE_F; - default: - unreachable("Not reached."); - } -} - static fs_inst * emit_pixel_interpolater_send(const fs_builder &bld, enum opcode opcode, -- 2.30.2