mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-20 10:00:36 +02:00
st/mesa: advertise ARB_half_float_vertex when available
Both softpipe and llvmpipe pass the piglit half float test.
This commit is contained in:
parent
3262554bb3
commit
f2e05acac9
1 changed files with 7 additions and 0 deletions
|
|
@ -373,6 +373,13 @@ void st_init_extensions(struct st_context *st)
|
|||
ctx->Extensions.EXT_draw_buffers2 = GL_TRUE;
|
||||
}
|
||||
|
||||
/* GL_ARB_half_float_vertex */
|
||||
if (screen->is_format_supported(screen, PIPE_FORMAT_R16G16B16A16_FLOAT,
|
||||
PIPE_BUFFER, 0,
|
||||
PIPE_BIND_VERTEX_BUFFER, 0)) {
|
||||
ctx->Extensions.ARB_half_float_vertex = GL_TRUE;
|
||||
}
|
||||
|
||||
#if 0 /* not yet */
|
||||
if (screen->get_param(screen, PIPE_CAP_INDEP_BLEND_FUNC)) {
|
||||
ctx->Extensions.ARB_draw_buffers_blend = GL_TRUE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue