summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/panfrost
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2019-08-20 13:14:56 -0700
committerAlyssa Rosenzweig <[email protected]>2019-08-21 08:40:54 -0700
commit9836c26ac101febc65dcaa673224222f7e3113c1 (patch)
tree8d722ca6bddf2b3e027a85674fdc579949600f02 /src/gallium/drivers/panfrost
parente4eaa730dd2bf5da58b33d629cae30bb210f2bed (diff)
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 <[email protected]>
Diffstat (limited to 'src/gallium/drivers/panfrost')
-rw-r--r--src/gallium/drivers/panfrost/pan_context.c2
1 files changed, 2 insertions, 0 deletions
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;