diff options
author | Francisco Jerez <[email protected]> | 2013-11-25 13:50:47 -0800 |
---|---|---|
committer | Francisco Jerez <[email protected]> | 2014-02-12 18:39:48 +0100 |
commit | 8a2508ee0726b349318c1e05122edbe5a545480a (patch) | |
tree | ca1edcc3a8600433286fdfb2d212af7bdf5823ec /src/glsl/ast_to_hir.cpp | |
parent | 9e611fc72dc80abd7bc1fec7863eb1fccb833930 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/glsl/ast_to_hir.cpp')
-rw-r--r-- | src/glsl/ast_to_hir.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp index c89a26bf910..c2026b1e490 100644 --- a/src/glsl/ast_to_hir.cpp +++ b/src/glsl/ast_to_hir.cpp @@ -969,6 +969,7 @@ do_comparison(void *mem_ctx, int operation, ir_rvalue *op0, ir_rvalue *op1) case GLSL_TYPE_ERROR: case GLSL_TYPE_VOID: case GLSL_TYPE_SAMPLER: + case GLSL_TYPE_IMAGE: case GLSL_TYPE_INTERFACE: case GLSL_TYPE_ATOMIC_UINT: /* I assume a comparison of a struct containing a sampler just |