glsl: add support for ARB_texture_multisample
V2: - emit `sample` parameter properly for multisample texelFetch() - fix spurious whitespace change - introduce a new opcode ir_txf_ms rather than overloading the existing ir_txf further. This makes doing the right thing in the driver somewhat simpler. V3: - fix weird whitespace V4: - don't forget to include the new opcode in tex_opcode_strs[] (thanks Kenneth for spotting this) Signed-off-by: Chris Forbes <chrisf@ijw.co.nz> [V2] Reviewed-by: Eric Anholt <eric@anholt.net> [V2] Reviewed-by: Paul Berry <stereotype441@gmail.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
@@ -1230,6 +1230,9 @@ glcpp_parser_create (const struct gl_extensions *extensions, int api)
|
||||
|
||||
if (extensions->ARB_shading_language_packing)
|
||||
add_builtin_define(parser, "GL_ARB_shading_language_packing", 1);
|
||||
|
||||
if (extensions->ARB_texture_multisample)
|
||||
add_builtin_define(parser, "GL_ARB_texture_multisample", 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user