Commit b4d8be16 authored by Alyssa Rosenzweig's avatar Alyssa Rosenzweig Committed by Marge Bot
Browse files

asahi: Implement ARB_texture_mirror_clamp_to_edge



Guessing the enum value, passes texwrap piglit.

Signed-off-by: Alyssa Rosenzweig's avatarAlyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <!20560>
parent 0e2d7865
Pipeline #779833 waiting for manual action with stages
in 5 minutes and 1 second
......@@ -206,7 +206,7 @@ GL 4.4, GLSL 4.40 -- all DONE: freedreno/a6xx, i965/gen8+, nvc0, r600, radeonsi,
- input/output block locations DONE
GL_ARB_multi_bind DONE (all drivers)
GL_ARB_query_buffer_object DONE (freedreno/a6xx, i965/hsw+, virgl)
GL_ARB_texture_mirror_clamp_to_edge DONE (freedreno, i965, nv50, softpipe, virgl, v3d, panfrost)
GL_ARB_texture_mirror_clamp_to_edge DONE (freedreno, i965, nv50, softpipe, virgl, v3d, panfrost, asahi)
GL_ARB_texture_stencil8 DONE (freedreno, i965/hsw+, nv50, softpipe, virgl, v3d, panfrost, d3d12, asahi)
GL_ARB_vertex_type_10f_11f_11f_rev DONE (freedreno, i965, nv50, softpipe, virgl, panfrost, d3d12, asahi)
......
......@@ -276,6 +276,7 @@
<value name="Mirrored repeat" value="2"/>
<value name="Clamp to border" value="3"/>
<value name="Clamp (GL)" value="4"/>
<value name="Mirrored clamp to edge" value="5"/>
</enum>
<enum name="Mip filter">
......
......@@ -1240,6 +1240,7 @@ agx_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
case PIPE_CAP_UMA:
case PIPE_CAP_TEXTURE_FLOAT_LINEAR:
case PIPE_CAP_TEXTURE_HALF_FLOAT_LINEAR:
case PIPE_CAP_TEXTURE_MIRROR_CLAMP_TO_EDGE:
case PIPE_CAP_SHADER_ARRAY_COMPONENTS:
case PIPE_CAP_PACKED_UNIFORMS:
case PIPE_CAP_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION:
......
......@@ -377,6 +377,8 @@ agx_wrap_from_pipe(enum pipe_tex_wrap in)
return AGX_WRAP_CLAMP_TO_BORDER;
case PIPE_TEX_WRAP_CLAMP:
return AGX_WRAP_CLAMP_GL;
case PIPE_TEX_WRAP_MIRROR_CLAMP_TO_EDGE:
return AGX_WRAP_MIRRORED_CLAMP_TO_EDGE;
default:
unreachable("Invalid wrap mode");
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment