From: Emil Velikov <emil.veli...@collabora.com> Currently one can build i915g without LLVM thus the current handling is wrong. Whether using i915g w/o LLVM is a good idea or not is a question for another time.
Cc: Stéphane Marchesin <marc...@chromium.org> Signed-off-by: Emil Velikov <emil.veli...@collabora.com> --- src/gallium/drivers/i915/i915_screen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/i915/i915_screen.c b/src/gallium/drivers/i915/i915_screen.c index 78898736d9..6f9e612348 100644 --- a/src/gallium/drivers/i915/i915_screen.c +++ b/src/gallium/drivers/i915/i915_screen.c @@ -114,7 +114,7 @@ i915_get_shader_param(struct pipe_screen *screen, unsigned shader, enum pipe_sha switch (cap) { case PIPE_SHADER_CAP_MAX_TEXTURE_SAMPLERS: case PIPE_SHADER_CAP_MAX_SAMPLER_VIEWS: - if (debug_get_bool_option("DRAW_USE_LLVM", TRUE)) + if (draw_get_option_use_llvm()) return PIPE_MAX_SAMPLERS; else return 0; -- 2.11.0 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev