Bumped num stages to 4 in preparation for AA clipping
http://codereview.appspot.com/6135046/
git-svn-id: http://skia.googlecode.com/svn/trunk@3783 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/gpu/GrDrawTarget.cpp b/src/gpu/GrDrawTarget.cpp
index 3e3ff51..c5dd3ec 100644
--- a/src/gpu/GrDrawTarget.cpp
+++ b/src/gpu/GrDrawTarget.cpp
@@ -75,26 +75,30 @@
/* These values were generated by the above function */
const GrVertexLayout gStageTexCoordMasks[] = {
- 0x49,
- 0x92,
- 0x124
+ 0x1111,
+ 0x2222,
+ 0x4444,
+ 0x8888,
};
-
GR_STATIC_ASSERT(GrDrawState::kNumStages == GR_ARRAY_COUNT(gStageTexCoordMasks));
-const GrVertexLayout gStageMasks[] = {
- 0x249,
- 0x492,
- 0x924
-};
+const GrVertexLayout gStageMasks[] = {
+ 0x11111,
+ 0x22222,
+ 0x44444,
+ 0x88888,
+};
GR_STATIC_ASSERT(GrDrawState::kNumStages == GR_ARRAY_COUNT(gStageMasks));
+
const GrVertexLayout gTexCoordMasks[] = {
- 0x7,
- 0x38,
- 0x1c0,
+ 0xf,
+ 0xf0,
+ 0xf00,
+ 0xf000,
};
GR_STATIC_ASSERT(GrDrawState::kMaxTexCoords == GR_ARRAY_COUNT(gTexCoordMasks));
+
bool check_layout(GrVertexLayout layout) {
// can only have 1 or 0 bits set for each stage.
for (int s = 0; s < GrDrawState::kNumStages; ++s) {
@@ -1291,3 +1295,4 @@
GrPrintf("Max Render Target Size : %d\n", fMaxRenderTargetSize);
}
+