summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir_types.h
Commit message (Collapse)AuthorAgeFilesLines
* nir: Delete open coded type printing.Kenneth Graunke2016-10-061-2/+1
| | | | | | | | | | | | | glsl_print_type() prints arrays of arrays incorrectly. For example, a type with name float[3][7] would be printed as float[7][3]. (This is an array of length 3 containing arrays of 7 floats.) cdecl says that the type name is correct. glsl_print_type() doesn't really do anything above and beyond printing type->name, and glsl_print_struct() wasn't used at all. So, drop them. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
* nir: add glsl_dvec_type() helperTimothy Arceri2016-07-061-0/+1
| | | | Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
* nir: add glsl_double_type() helperTimothy Arceri2016-07-071-0/+1
| | | | Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
* nir: glsl_get_bit_size() should take glsl_typeRob Clark2016-05-121-2/+2
| | | | | | | | It's what all the call-sites once, so gets rid of a bunch of inlined glsl_get_base_type() at the call-sites. Signed-off-by: Rob Clark <robclark@freedesktop.org> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
* compiler: Add a C wrapper for glsl_type::without_array().Kenneth Graunke2016-05-071-0/+1
| | | | | Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Chris Forbes <chrisforbes@google.com>
* glsl: Rename "vertex_input_slots" -> "is_vertex_input"Matt Turner2016-04-131-1/+1
| | | | | | | | | | | vertex_input_slots would be an appropriate name for an integer, but not a bool. Also remove a cond ? true : false from a count_attribute_slots() call site, noticed during the rename. Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com> Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
* nir/types: Add a wrapper for count_attribute_slotsJason Ekstrand2016-04-071-0/+3
| | | | Reviewed-by: Rob Clark <robdclark@gmail.com>
* nir/types: add a function to get the bitsize of a base typeConnor Abbott2016-03-171-0/+21
| | | | | | | | | v2: fix it for GLSL_TYPE_SUBROUTINE (Iago) Signed-off-by: Iago Toral Quiroga <itoral@igalia.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com> Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
* nir/types: Add more type constructor functionsJason Ekstrand2016-02-131-0/+12
| | | | Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
* nir/types: Add a few more glsl_type_is_ functionsJason Ekstrand2016-02-131-0/+3
| | | | Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
* nir/types: Add helpers for working with sampler and image typesJason Ekstrand2016-02-131-0/+14
| | | | Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
* nir/types: Add helpers for function typesJason Ekstrand2016-02-131-0/+9
| | | | Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
* compiler: move the glsl_types C wrapper alongside their C++ brethrenEmil Velikov2016-01-261-0/+87
At a later stage we might want to split out the NIR specific [XXX: which one was it], as to make things move obvious and rename the files appropriately. This patch aims to split it out of nir. Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Acked-by: Matt Turner <mattst88@gmail.com> Acked-by: Jose Fonseca <jfonseca@vmware.com>