OSDN Git Service

glsl_types: refactor/prep for vec8/vec16
authorRob Clark <robdclark@gmail.com>
Mon, 12 Mar 2018 18:54:56 +0000 (14:54 -0400)
committerRob Clark <robdclark@gmail.com>
Sun, 25 Mar 2018 14:42:54 +0000 (10:42 -0400)
commitf407edf3407396379e16b0be74b8d3b85d2ad7f0
tree559dff2c30d9a2a0f1f4a7b05fb2ececbb14fd97
parentd60eaf7b1fe154bd96408c4a9ec5b400293e47f1
glsl_types: refactor/prep for vec8/vec16

Refactor things so there isn't so much typing involved to add new
things.

Also drops a pointless conditional (out of bounds rows or columns
already returns error_type in all paths.. might as well drop it
rather than make the check more convoluted in the next patch by
adding the vec8/vec16 case).

Signed-off-by: Rob Clark <robdclark@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/compiler/builtin_type_macros.h
src/compiler/glsl_types.cpp
src/compiler/glsl_types.h