summaryrefslogtreecommitdiff
path: root/src/compiler/nir_types.h
AgeCommit message (Collapse)AuthorFilesLines
2017-05-04nir: add a C wrapper for glsl_type::get_interface_instance()Rob Clark1-0/+5
Signed-off-by: Rob Clark <robdclark@gmail.com>
2017-03-22compiler: consistently use ifndef guards over pragma onceEmil Velikov1-1/+4
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Acked-by: Vedran Miletić <vedran@miletic.net> Acked-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
2017-02-16nir/types: add C accessors for 64-bit integer types.Dave Airlie1-0/+2
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Signed-off-by: Dave Airlie <airlied@redhat.com>
2017-01-20nir: Add GLSL_TYPE_INT64 and GLSL_TYPE_UINT64 to glsl_get_bit_sizeIan Romanick1-0/+2
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
2016-11-19nir: Add a C wrapper for glsl_type::is_array_of_arrays().Kenneth Graunke1-0/+1
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
2016-11-11nir: add more helpers to nir_types.cppTimothy Arceri1-0/+3
These new helpers will be used in nir_gather_info.c in a following patch. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2016-10-06nir: Delete open coded type printing.Kenneth Graunke1-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>
2016-07-06nir: add glsl_dvec_type() helperTimothy Arceri1-0/+1
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2016-07-07nir: add glsl_double_type() helperTimothy Arceri1-0/+1
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2016-05-12nir: glsl_get_bit_size() should take glsl_typeRob Clark1-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>
2016-05-07compiler: Add a C wrapper for glsl_type::without_array().Kenneth Graunke1-0/+1
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Chris Forbes <chrisforbes@google.com>
2016-04-13glsl: Rename "vertex_input_slots" -> "is_vertex_input"Matt Turner1-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>
2016-04-07nir/types: Add a wrapper for count_attribute_slotsJason Ekstrand1-0/+3
Reviewed-by: Rob Clark <robdclark@gmail.com>
2016-03-17nir/types: add a function to get the bitsize of a base typeConnor Abbott1-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>
2016-02-13nir/types: Add more type constructor functionsJason Ekstrand1-0/+12
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
2016-02-13nir/types: Add a few more glsl_type_is_ functionsJason Ekstrand1-0/+3
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
2016-02-13nir/types: Add helpers for working with sampler and image typesJason Ekstrand1-0/+14
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
2016-02-13nir/types: Add helpers for function typesJason Ekstrand1-0/+9
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
2016-01-26compiler: move the glsl_types C wrapper alongside their C++ brethrenEmil Velikov1-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>