OSDN Git Service

glsl: simplifies the merge of the default in layout qualifier
authorAndres Gomez <agomez@igalia.com>
Mon, 14 Nov 2016 15:49:33 +0000 (17:49 +0200)
committerAndres Gomez <agomez@igalia.com>
Fri, 25 Nov 2016 11:18:30 +0000 (13:18 +0200)
commit0ecfff0d08a7ca48f1b284c11c48f158c723e0c2
treee8556815387a67254711344cf2ded9575565a2cd
parent65df02c00287449efedc4ec3d57ceee38abaacdb
glsl: simplifies the merge of the default in layout qualifier

The merge into the default in layout qualifier duplicates a lot of
code that can be reused from the generic merge method.

Now, we use the generic merge method inside the specific merge for the
default in layout qualifier. The generic merge method has been
completed with some bits that were only present in the merge for the
default in layout qualifier and the specific validation bits have been
moved to the validation method for the default in layout qualifier.

Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
Signed-off-by: Andres Gomez <agomez@igalia.com>
src/compiler/glsl/ast_type.cpp