Module: Mesa
Branch: main
Commit: 854fb27275c7744ea022ef9a2eb6320b59388834
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=854fb27275c7744ea022ef9a2eb6320b59388834

Author: Marek Olšák <[email protected]>
Date:   Wed Aug  3 10:54:03 2022 -0400

gallium/u_blitter: fix the has_txf support condition

GLSL 1.30 has it too.

Reviewed-by: Pierre-Eric Pelloux-Prayer <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17692>

---

 src/gallium/auxiliary/util/u_blitter.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/auxiliary/util/u_blitter.c 
b/src/gallium/auxiliary/util/u_blitter.c
index 02467822d80..8db2f4d64d3 100644
--- a/src/gallium/auxiliary/util/u_blitter.c
+++ b/src/gallium/auxiliary/util/u_blitter.c
@@ -215,7 +215,7 @@ struct blitter_context *util_blitter_create(struct 
pipe_context *pipe)
    ctx->has_tex_lz = pipe->screen->get_param(pipe->screen,
                                              PIPE_CAP_TGSI_TEX_TXF_LZ);
    ctx->has_txf = pipe->screen->get_param(pipe->screen,
-                                          PIPE_CAP_GLSL_FEATURE_LEVEL) > 130;
+                                          PIPE_CAP_GLSL_FEATURE_LEVEL) >= 130;
    ctx->has_sample_shading = pipe->screen->get_param(pipe->screen,
                                                      PIPE_CAP_SAMPLE_SHADING);
    ctx->cube_as_2darray = pipe->screen->get_param(pipe->screen,

Reply via email to