glsl: Add image type to the GLSL IR.
authorFrancisco Jerez <currojerez@riseup.net>
Mon, 25 Nov 2013 21:50:47 +0000 (13:50 -0800)
committerFrancisco Jerez <currojerez@riseup.net>
Wed, 12 Feb 2014 17:39:48 +0000 (18:39 +0100)
commit8a2508ee0726b349318c1e05122edbe5a545480a
treeca1edcc3a8600433286fdfb2d212af7bdf5823ec
parent9e611fc72dc80abd7bc1fec7863eb1fccb833930
glsl: Add image type to the GLSL IR.

v2: Reuse the glsl_sampler_dim enum for images.  Reuse the
    glsl_type::sampler_* fields instead of creating new ones specific
    to image types.  Reuse the same constructor as for samplers adding
    a new 'base_type' argument.

Reviewed-by: Paul Berry <stereotype441@gmail.com>
12 files changed:
src/glsl/ast_to_hir.cpp
src/glsl/builtin_type_macros.h
src/glsl/glsl_types.cpp
src/glsl/glsl_types.h
src/glsl/ir_clone.cpp
src/glsl/link_uniform_initializers.cpp
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
src/mesa/drivers/dri/i965/brw_shader.cpp
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
src/mesa/program/ir_to_mesa.cpp
src/mesa/state_tracker/st_glsl_to_tgsi.cpp