[Mesa-dev] [PATCH 5/6] mesa/st: Add support for NV_fill_rectangle
Samuel Pitoiset
samuel.pitoiset at gmail.com
Thu Mar 23 16:31:27 UTC 2017
mesa/st -> st/mesa
On 03/23/2017 04:27 PM, Lyude wrote:
> Signed-off-by: Lyude <lyude at redhat.com>
> ---
> src/mesa/state_tracker/st_atom_rasterizer.c | 2 ++
> src/mesa/state_tracker/st_extensions.c | 1 +
> 2 files changed, 3 insertions(+)
>
> diff --git a/src/mesa/state_tracker/st_atom_rasterizer.c b/src/mesa/state_tracker/st_atom_rasterizer.c
> index 50be7b6..0b0e045 100644
> --- a/src/mesa/state_tracker/st_atom_rasterizer.c
> +++ b/src/mesa/state_tracker/st_atom_rasterizer.c
> @@ -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;
> diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c
> index 16f8685..eefd21d 100644
> --- a/src/mesa/state_tracker/st_extensions.c
> +++ b/src/mesa/state_tracker/st_extensions.c
> @@ -637,6 +637,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 },
>
More information about the mesa-dev
mailing list