Commit 82e0c5f4 authored by Lyude Paul's avatar Lyude Paul Committed by Ilia Mirkin

st/mesa: Add support for NV_fill_rectangle

Signed-off-by: Lyude Paul's avatarLyude <lyude@redhat.com>

Changes since v1:
- Fix commit name
Reviewed-by: Ilia Mirkin's avatarIlia Mirkin <imirkin@alum.mit.edu>
parent 1cc7352c
......@@ -50,6 +50,8 @@ static GLuint translate_fill( GLenum mode )
return PIPE_POLYGON_MODE_LINE;
case GL_FILL:
return PIPE_POLYGON_MODE_FILL;
case GL_FILL_RECTANGLE_NV:
return PIPE_POLYGON_MODE_FILL_RECTANGLE;
default:
assert(0);
return 0;
......
......@@ -638,6 +638,7 @@ void st_init_extensions(struct pipe_screen *screen,
{ o(ATI_separate_stencil), PIPE_CAP_TWO_SIDED_STENCIL },
{ o(ATI_texture_mirror_once), PIPE_CAP_TEXTURE_MIRROR_CLAMP },
{ o(NV_conditional_render), PIPE_CAP_CONDITIONAL_RENDER },
{ o(NV_fill_rectangle), PIPE_CAP_POLYGON_MODE_FILL_RECTANGLE },
{ o(NV_primitive_restart), PIPE_CAP_PRIMITIVE_RESTART },
{ o(NV_texture_barrier), PIPE_CAP_TEXTURE_BARRIER },
{ o(NVX_gpu_memory_info), PIPE_CAP_QUERY_MEMORY_INFO },
......
Markdown is supported
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