mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
r600: enable support for 64 bit DIVMOD when NIR is used
The glsl lowering seems to be broken, but the nir lowering pass handles this correctly. Signed-off-by: Gert Wollny <gert.wollny@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7824>
This commit is contained in:
parent
0bed972619
commit
33362e0df5
1 changed files with 5 additions and 0 deletions
|
|
@ -414,6 +414,11 @@ static int r600_get_param(struct pipe_screen* pscreen, enum pipe_cap param)
|
|||
rscreen->b.family == CHIP_HEMLOCK)
|
||||
return 1;
|
||||
return 0;
|
||||
case PIPE_CAP_INT64_DIVMOD:
|
||||
/* it is actually not supported, but the nir lowering hdanles this corectly wheras
|
||||
* the glsl lowering path seems to not initialize the buildins correctly.
|
||||
*/
|
||||
return is_nir_enabled(&rscreen->b);
|
||||
case PIPE_CAP_CULL_DISTANCE:
|
||||
return 1;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue