Commit 414b72df by Ben Clayton

Some minor code tidying.

These were part of a larger stack of changes for Yarn, but aren't specific to anything in particular. Change-Id: I863d8bbb316b5c255be9557b83511bb9cdef70b0 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/35570Tested-by: 's avatarBen Clayton <bclayton@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Reviewed-by: 's avatarChris Forbes <chrisforbes@google.com> Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com>
parent f7b7b706
...@@ -47,11 +47,7 @@ namespace sw ...@@ -47,11 +47,7 @@ namespace sw
PlaneEquation z; PlaneEquation z;
PlaneEquation w; PlaneEquation w;
PlaneEquation V[MAX_INTERFACE_COMPONENTS];
union
{
PlaneEquation V[MAX_INTERFACE_COMPONENTS];
};
// Masks for two-sided stencil // Masks for two-sided stencil
int64_t clockwiseMask; int64_t clockwiseMask;
......
...@@ -36,7 +36,10 @@ namespace sw ...@@ -36,7 +36,10 @@ namespace sw
Vertex vertex[SIZE]; Vertex vertex[SIZE];
uint32_t tag[SIZE]; uint32_t tag[SIZE];
int drawCall; // Identifier of the draw call for the cache data. If this cache is
// used with a different draw call, then the cache should be invalidated
// before use.
int drawCall = -1;
}; };
struct VertexTask struct VertexTask
......
...@@ -30,7 +30,7 @@ namespace sw ...@@ -30,7 +30,7 @@ namespace sw
~FrameBufferAndroid() override; ~FrameBufferAndroid() override;
void flip(sw::Surface *source) override {blit(source, nullptr, nullptr);}; void flip(sw::Surface *source) override {blit(source, nullptr, nullptr);}
void blit(sw::Surface *source, const Rect *sourceRect, const Rect *destRect) override; void blit(sw::Surface *source, const Rect *sourceRect, const Rect *destRect) override;
void *lock() override; void *lock() override;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment