From: Alyssa Rosenzweig Date: Tue, 20 Aug 2019 20:14:56 +0000 (-0700) Subject: panfrost: Don't crash on GL_CLAMP X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9836c26ac101febc65dcaa673224222f7e3113c1;p=mesa.git panfrost: Don't crash on GL_CLAMP It's a legacy GL thing... we don't really need to handle it *right* now, but we shouldn't crash.. Signed-off-by: Alyssa Rosenzweig --- diff --git a/src/gallium/drivers/panfrost/pan_context.c b/src/gallium/drivers/panfrost/pan_context.c index d2bb6bf6716..e8411ced014 100644 --- a/src/gallium/drivers/panfrost/pan_context.c +++ b/src/gallium/drivers/panfrost/pan_context.c @@ -274,6 +274,8 @@ translate_tex_wrap(enum pipe_tex_wrap w) case PIPE_TEX_WRAP_REPEAT: return MALI_WRAP_REPEAT; + /* TODO: lower GL_CLAMP? */ + case PIPE_TEX_WRAP_CLAMP: case PIPE_TEX_WRAP_CLAMP_TO_EDGE: return MALI_WRAP_CLAMP_TO_EDGE;