Commit a3512ddf authored by Marek Olšák's avatar Marek Olšák Committed by Marge Bot

st/mesa: don't enable NV_copy_depth_to_color if NIR doesn't support FP64

Fixes: e512f2ce - mesa: add NV_copy_depth_to_color support for nir
Closes: #3459Reviewed-by: Tapani Pälli's avatarTapani Pälli <>
Part-of: <!6467>
parent 782016ea
Pipeline #202134 waiting for manual action with stages
......@@ -1771,8 +1771,12 @@ void st_init_extensions(struct pipe_screen *screen,
bool prefer_nir = PIPE_SHADER_IR_NIR ==
screen->get_shader_param(screen, PIPE_SHADER_FRAGMENT, PIPE_SHADER_CAP_PREFERRED_IR);
const struct nir_shader_compiler_options *nir_options =
if (prefer_nir &&
screen->get_shader_param(screen, PIPE_SHADER_FRAGMENT, PIPE_SHADER_CAP_INTEGERS) &&
extensions->ARB_stencil_texturing &&
!(nir_options->lower_doubles_options & nir_lower_fp64_full_software))
extensions->NV_copy_depth_to_color = TRUE;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment