glsl: add support for ARB_texture_multisample
authorChris Forbes <chrisf@ijw.co.nz>
Fri, 21 Dec 2012 08:33:37 +0000 (21:33 +1300)
committerChris Forbes <chrisf@ijw.co.nz>
Fri, 1 Mar 2013 22:33:54 +0000 (11:33 +1300)
commitffb53b4f0384fc811372644ce35471c0711eef9e
treea9600d8e15d97f25a90cec15db64dce44e3f3e86
parent16af0aca09029e647e4b7ae53ed94b089531c080
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>
20 files changed:
src/glsl/builtin_types.h
src/glsl/builtins/profiles/ARB_texture_multisample.glsl [new file with mode: 0644]
src/glsl/builtins/tools/generate_builtins.py
src/glsl/builtins/tools/texture_builtins.py
src/glsl/glcpp/glcpp-parse.y
src/glsl/glsl_lexer.ll
src/glsl/glsl_parser.yy
src/glsl/glsl_parser_extras.cpp
src/glsl/glsl_parser_extras.h
src/glsl/glsl_types.cpp
src/glsl/glsl_types.h
src/glsl/ir.cpp
src/glsl/ir.h
src/glsl/ir_clone.cpp
src/glsl/ir_hv_accept.cpp
src/glsl/ir_print_visitor.cpp
src/glsl/ir_reader.cpp
src/glsl/ir_rvalue_visitor.cpp
src/glsl/opt_tree_grafting.cpp
src/glsl/standalone_scaffolding.cpp