[Mesa-dev] [PATCH 20/59] glsl: Add 64-bit integer support to some operations.

Matt Turner mattst88 at gmail.com
Wed Oct 26 20:42:03 UTC 2016


On Tue, Oct 25, 2016 at 5:59 PM, Ian Romanick <idr at freedesktop.org> wrote:
> From: Dave Airlie <airlied at redhat.com>
>
> This adds 64-bit integer support to some AST and IR operations where
> it is needed.
>
> Signed-off-by: Dave Airlie <airlied at redhat.com>
> Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
> ---
>  src/compiler/glsl/ast_to_hir.cpp  | 12 ++++++------
>  src/compiler/glsl/ir_validate.cpp |  4 ++--
>  2 files changed, 8 insertions(+), 8 deletions(-)
>
> diff --git a/src/compiler/glsl/ast_to_hir.cpp b/src/compiler/glsl/ast_to_hir.cpp
> index b43e4fa..8aec2ea 100644
> --- a/src/compiler/glsl/ast_to_hir.cpp
> +++ b/src/compiler/glsl/ast_to_hir.cpp
> @@ -533,12 +533,12 @@ bit_logic_result_type(ir_rvalue * &value_a, ir_rvalue * &value_b,
>      *     (|). The operands must be of type signed or unsigned integers or
>      *     integer vectors."
>      */
> -   if (!type_a->is_integer()) {
> +   if (!type_a->is_integer_32_64()) {

"is_integer()" doesn't imply to me "but not 64-bit". Presumably we
decided that changing all existing uses of is_integer() was a bridge
too far?

There really aren't *that* many (less than 40). Would we rather add
64-bit cases to is_integer() and add and use a new is_integer_32()
method in place of existing is_integer() calls?


More information about the mesa-dev mailing list