mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
mesa: expose AMD_texture_texture4
because the closed driver exposes it. Tested by piglit. Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
This commit is contained in:
parent
908f817918
commit
1660f3aa05
5 changed files with 15 additions and 0 deletions
|
|
@ -39,6 +39,7 @@ TBD.
|
|||
<h2>New features</h2>
|
||||
|
||||
<ul>
|
||||
<li>GL_AMD_texture_texture4 on all GL 4.0 drivers.</li>
|
||||
<li>GL_EXT_shader_implicit_conversions on all drivers (ES extension).</li>
|
||||
<li>GL_EXT_texture_compression_bptc on all GL 4.0 drivers (ES extension).</li>
|
||||
<li>GL_EXT_texture_compression_rgtc on all GL 3.0 drivers (ES extension).</li>
|
||||
|
|
|
|||
|
|
@ -418,6 +418,12 @@ texture_gather_cube_map_array(const _mesa_glsl_parse_state *state)
|
|||
state->OES_texture_cube_map_array_enable;
|
||||
}
|
||||
|
||||
static bool
|
||||
texture_texture4(const _mesa_glsl_parse_state *state)
|
||||
{
|
||||
return state->AMD_texture_texture4_enable;
|
||||
}
|
||||
|
||||
static bool
|
||||
texture_gather_or_es31(const _mesa_glsl_parse_state *state)
|
||||
{
|
||||
|
|
@ -2891,6 +2897,10 @@ builtin_builder::create_builtins()
|
|||
_texture(ir_txd, shader_texture_lod_and_rect, glsl_type::vec4_type, glsl_type::sampler2DRectShadow_type, glsl_type::vec4_type, TEX_PROJECT),
|
||||
NULL);
|
||||
|
||||
add_function("texture4",
|
||||
_texture(ir_tg4, texture_texture4, glsl_type::vec4_type, glsl_type::sampler2D_type, glsl_type::vec2_type),
|
||||
NULL);
|
||||
|
||||
add_function("textureGather",
|
||||
_texture(ir_tg4, texture_gather_or_es31, glsl_type::vec4_type, glsl_type::sampler2D_type, glsl_type::vec2_type),
|
||||
_texture(ir_tg4, texture_gather_or_es31, glsl_type::ivec4_type, glsl_type::isampler2D_type, glsl_type::vec2_type),
|
||||
|
|
|
|||
|
|
@ -706,6 +706,7 @@ static const _mesa_glsl_extension _mesa_glsl_supported_extensions[] = {
|
|||
EXT(AMD_gpu_shader_int64),
|
||||
EXT(AMD_shader_stencil_export),
|
||||
EXT(AMD_shader_trinary_minmax),
|
||||
EXT(AMD_texture_texture4),
|
||||
EXT(AMD_vertex_shader_layer),
|
||||
EXT(AMD_vertex_shader_viewport_index),
|
||||
EXT(ANDROID_extension_pack_es31a),
|
||||
|
|
|
|||
|
|
@ -786,6 +786,8 @@ struct _mesa_glsl_parse_state {
|
|||
bool AMD_shader_stencil_export_warn;
|
||||
bool AMD_shader_trinary_minmax_enable;
|
||||
bool AMD_shader_trinary_minmax_warn;
|
||||
bool AMD_texture_texture4_enable;
|
||||
bool AMD_texture_texture4_warn;
|
||||
bool AMD_vertex_shader_layer_enable;
|
||||
bool AMD_vertex_shader_layer_warn;
|
||||
bool AMD_vertex_shader_viewport_index_enable;
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@ EXT(AMD_query_buffer_object , ARB_query_buffer_object
|
|||
EXT(AMD_seamless_cubemap_per_texture , AMD_seamless_cubemap_per_texture , GLL, GLC, x , x , 2009)
|
||||
EXT(AMD_shader_stencil_export , ARB_shader_stencil_export , GLL, GLC, x , x , 2009)
|
||||
EXT(AMD_shader_trinary_minmax , dummy_true , GLL, GLC, x , x , 2012)
|
||||
EXT(AMD_texture_texture4 , ARB_texture_gather , GLL, GLC, x , x , 2008)
|
||||
EXT(AMD_vertex_shader_layer , AMD_vertex_shader_layer , GLL, GLC, x , x , 2012)
|
||||
EXT(AMD_vertex_shader_viewport_index , AMD_vertex_shader_viewport_index , GLL, GLC, x , x , 2012)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue