Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(106)

Unified Diff: gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.cc

Issue 2750223002: cmaa: remove dead code in shader. (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.cc
diff --git a/gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.cc b/gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.cc
index 36932fa0ab6ac810f39b7f32b78dc73561236c17..e4cdd30cfe41f86c67d856cd42f874e92bea7a46 100644
--- a/gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.cc
+++ b/gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.cc
@@ -808,42 +808,6 @@ const char ApplyFramebufferAttachmentCMAAINTELResourceManager::cmaa_frag_s1_[] =
return ret;
}
- uint PackZ(const uvec2 screenPos, const bool invertedZShape) {
- uint retVal = screenPos.x | (screenPos.y << 15u);
- if (invertedZShape)
- retVal |= (1u << 30u);
- return retVal;
- }
-
- void UnpackZ(uint packedZ, out uvec2 screenPos,
- out bool invertedZShape)
- {
- screenPos.x = packedZ & 0x7FFFu;
- screenPos.y = (packedZ >> 15u) & 0x7FFFu;
- invertedZShape = (packedZ >> 30u) == 1u;
- }
-
- uint PackZ(const uvec2 screenPos,
- const bool invertedZShape,
- const bool horizontal) {
- uint retVal = screenPos.x | (screenPos.y << 15u);
- if (invertedZShape)
- retVal |= (1u << 30u);
- if (horizontal)
- retVal |= (1u << 31u);
- return retVal;
- }
-
- void UnpackZ(uint packedZ,
- out uvec2 screenPos,
- out bool invertedZShape,
- out bool horizontal) {
- screenPos.x = packedZ & 0x7FFFu;
- screenPos.y = (packedZ >> 15u) & 0x7FFFu;
- invertedZShape = (packedZ & (1u << 30u)) != 0u;
- horizontal = (packedZ & (1u << 31u)) != 0u;
- }
-
vec4 PackBlurAAInfo(ivec2 pixelPos, uint shapeType) {
uint packedEdges = uint(
texelFetch(g_src0TextureFlt, pixelPos, 0).r * 255.5);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698