From 44aee09cfbcea0a8a6dafe1f942f2f61ba6dfa68 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Fri, 5 Apr 2024 11:39:08 -0400 Subject: [PATCH] nine: stop checking PIPE_CAP_NIR_COMPACT_ARRAYS and use compact_arrays Reviewed-by: Jesse Natalie Part-of: --- src/gallium/frontends/nine/adapter9.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gallium/frontends/nine/adapter9.c b/src/gallium/frontends/nine/adapter9.c index 863caf83192c8..69d875e550ed2 100644 --- a/src/gallium/frontends/nine/adapter9.c +++ b/src/gallium/frontends/nine/adapter9.c @@ -12,6 +12,7 @@ #include "util/u_math.h" #include "util/format/u_format.h" #include "util/u_dump.h" +#include "nir.h" #include "pipe/p_screen.h" @@ -39,7 +40,8 @@ NineAdapter9_ctor( struct NineAdapter9 *This, This->ctx = pCTX; if (!hal->get_param(hal, PIPE_CAP_CLIP_HALFZ)) { WARN_ONCE("Driver doesn't natively support d3d9 coordinates\n"); - if(!hal->get_param(hal, PIPE_CAP_NIR_COMPACT_ARRAYS)){ + const nir_shader_compiler_options *options = hal->get_compiler_options(hal, PIPE_SHADER_IR_NIR, PIPE_SHADER_VERTEX); + if(!options->compact_arrays){ ERR("Driver doesn't support emulating d3d9 coordinates\n"); return D3DERR_DRIVERINTERNALERROR; }