diff options
author | Brian Salomon <bsalomon@google.com> | 2017-11-15 14:28:33 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-11-15 20:06:12 +0000 |
commit | 559f556d9d70ef9d1202e436a56d48364b279ac6 (patch) | |
tree | 0371c13e6ed17e351066f1be46f4053e72c63365 /src/gpu/GrProgramDesc.cpp | |
parent | 33d17cbb003975fff895954435183756f9893c17 (diff) |
Remove support for image load/store
This isn't used and has become a maintenance burden.
Change-Id: I5f3af8f91e5c4f073fe4ea30e0a7f1f61efeea47
Reviewed-on: https://skia-review.googlesource.com/70640
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/GrProgramDesc.cpp')
-rw-r--r-- | src/gpu/GrProgramDesc.cpp | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/src/gpu/GrProgramDesc.cpp b/src/gpu/GrProgramDesc.cpp index f40c6b666c..a32e0cc28b 100644 --- a/src/gpu/GrProgramDesc.cpp +++ b/src/gpu/GrProgramDesc.cpp @@ -37,12 +37,6 @@ static inline uint16_t image_storage_or_sampler_uniform_type_key(GrSLType type ) case kBufferSampler_GrSLType: value = 4; break; - case kImageStorage2D_GrSLType: - value = 5; - break; - case kIImageStorage2D_GrSLType: - value = 6; - break; default: break; @@ -61,18 +55,11 @@ static uint16_t sampler_key(GrSLType samplerType, GrPixelConfig config, GrShader (caps.samplerPrecision(config, visibility) << (8 + kSamplerOrImageTypeKeyBits))); } -static uint16_t storage_image_key(const GrResourceIOProcessor::ImageStorageAccess& imageAccess) { - GrSLType type = imageAccess.proxy()->imageStorageType(); - return image_storage_or_sampler_uniform_type_key(type) | - (int)imageAccess.format() << kSamplerOrImageTypeKeyBits; -} - static void add_sampler_and_image_keys(GrProcessorKeyBuilder* b, const GrResourceIOProcessor& proc, const GrShaderCaps& caps) { int numTextureSamplers = proc.numTextureSamplers(); int numBuffers = proc.numBuffers(); - int numImageStorages = proc.numImageStorages(); - int numUniforms = numTextureSamplers + numBuffers + numImageStorages; + int numUniforms = numTextureSamplers + numBuffers; // Need two bytes per key. int word32Count = (numUniforms + 1) / 2; if (0 == word32Count) { @@ -92,9 +79,6 @@ static void add_sampler_and_image_keys(GrProcessorKeyBuilder* b, const GrResourc k16[j] = sampler_key(kBufferSampler_GrSLType, access.texelConfig(), access.visibility(), caps); } - for (int i = 0; i < numImageStorages; ++i, ++j) { - k16[j] = storage_image_key(proc.imageStorageAccess(i)); - } // zero the last 16 bits if the number of uniforms for samplers and image storages is odd. if (numUniforms & 0x1) { k16[numUniforms] = 0; |