r600: Enable tesselation for NIR

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4714>
This commit is contained in:
Gert Wollny
2020-04-15 16:59:46 +02:00
committed by Marge Bot
parent b6d4452661
commit 6747a984f5
+2 -3
View File
@@ -420,7 +420,7 @@ static int r600_get_param(struct pipe_screen* pscreen, enum pipe_cap param)
return 1;
case PIPE_CAP_SHADER_BUFFER_OFFSET_ALIGNMENT:
if (family >= CHIP_CEDAR && !is_nir_enabled(&rscreen->b))
if (family >= CHIP_CEDAR)
return 256;
return 0;
@@ -559,8 +559,7 @@ static int r600_get_shader_param(struct pipe_screen* pscreen,
/* With NIR we currently disable TES, TCS and COMP shaders */
case PIPE_SHADER_TESS_CTRL:
case PIPE_SHADER_TESS_EVAL:
if (rscreen->b.family >= CHIP_CEDAR &&
!is_nir_enabled(&rscreen->b))
if (rscreen->b.family >= CHIP_CEDAR)
break;
case PIPE_SHADER_COMPUTE:
if (!is_nir_enabled(&rscreen->b))