gallium: Add a cap bit for integer multiplication between 32-bit and 16-bit
authorIan Romanick <ian.d.romanick@intel.com>
Thu, 14 Nov 2019 22:16:26 +0000 (14:16 -0800)
committerMarge Bot <eric+marge@anholt.net>
Thu, 23 Jan 2020 00:18:57 +0000 (00:18 +0000)
commitb14e718e68019019ea241d7e7a7f1bbdb8fcf21e
treee2b2a4b69e89b523f1dac23f561e950898b08bf6
parent9db20748fd1af930920424a95321ee11b6eae16e
gallium: Add a cap bit for integer multiplication between 32-bit and 16-bit

Driver supports integer multiplication between a 32-bit integer and a
16-bit integer.  If the second operand is 32-bits, the upper 16-bits are
ignored, and the low 16-bits are possibly sign extended as necessary.

Iris will eventually enable this.  Not sure about other drivers.

v2: Add default value to u_screen.c.  Suggested by Caio.

Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/767>
src/gallium/auxiliary/util/u_screen.c
src/gallium/docs/source/screen.rst
src/gallium/include/pipe/p_defines.h