OSDN Git Service

Split Object::Kind::Variable
authorChris Forbes <chrisforbes@google.com>
Sat, 2 Feb 2019 23:16:43 +0000 (15:16 -0800)
committerChris Forbes <chrisforbes@google.com>
Mon, 4 Feb 2019 19:52:44 +0000 (19:52 +0000)
commit049ff387333469cf9b6b92c0014ac034c0cac18e
tree8caafa6f539533b43d71eb605fee9946fd63b746
parent612345523a8d159dd7b7f8399b42d96ae659d365
Split Object::Kind::Variable

We have two kinds of "variable" -- those that are directly backed by an
lvalue, and those that are subsets of an indexed location, etc space.

Split them so we don't have to rediscover it later at emit time.

Bug: b/120799499
Change-Id: I7403f76d615d7afa1ee50c014172f07b90262c40
Reviewed-on: https://swiftshader-review.googlesource.com/c/24374
Tested-by: Chris Forbes <chrisforbes@google.com>
Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
Reviewed-by: Alexis Hétu <sugoi@google.com>
src/Pipeline/SpirvShader.cpp
src/Pipeline/SpirvShader.hpp