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

Issue 1782583002: Add support for vertex and geometry shader textures (Closed)

Created:
4 years, 9 months ago by Chris Dalton
Modified:
4 years, 9 months ago
Reviewers:
egdaniel, bsalomon
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Add support for vertex and geometry shader textures Adds a visibility bitfield to GrTextureAccess that controls in which shaders the texture should be accessible. Also adds caps and validation to ensure we don't exceed texture limits. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1782583002 Committed: https://skia.googlesource.com/skia/+/9c3f14327a38e79ab7d0cf30dfd9bf89676fde06

Patch Set 1 #

Patch Set 2 : vulkan #

Patch Set 3 : #

Total comments: 4

Patch Set 4 : fSamplerType #

Patch Set 5 : #

Total comments: 1

Patch Set 6 : rebase, same sampler name for vk and gl #

Patch Set 7 : better rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+219 lines, -165 lines) Patch
M include/gpu/GrTexture.h View 1 2 3 3 chunks +4 lines, -2 lines 0 comments Download
M include/gpu/GrTextureAccess.h View 1 2 3 2 chunks +11 lines, -4 lines 0 comments Download
M src/gpu/GrTexture.cpp View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M src/gpu/GrTextureAccess.cpp View 1 chunk +9 lines, -5 lines 0 comments Download
M src/gpu/gl/GrGLCaps.h View 4 chunks +0 lines, -8 lines 0 comments Download
M src/gpu/gl/GrGLCaps.cpp View 1 8 chunks +25 lines, -16 lines 0 comments Download
M src/gpu/gl/GrGLDefines.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/gpu/gl/GrGLGpu.cpp View 1 2 3 4 5 3 chunks +3 lines, -3 lines 0 comments Download
M src/gpu/gl/GrGLNoOpInterface.cpp View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M src/gpu/gl/GrGLTexture.cpp View 1 2 3 2 chunks +16 lines, -3 lines 0 comments Download
M src/gpu/gl/builders/GrGLProgramBuilder.h View 1 2 3 4 5 2 chunks +3 lines, -9 lines 0 comments Download
M src/gpu/gl/builders/GrGLProgramBuilder.cpp View 1 3 chunks +1 line, -37 lines 0 comments Download
M src/gpu/glsl/GrGLSLCaps.h View 5 chunks +17 lines, -0 lines 0 comments Download
M src/gpu/glsl/GrGLSLCaps.cpp View 3 chunks +10 lines, -0 lines 0 comments Download
M src/gpu/glsl/GrGLSLProgramBuilder.h View 1 2 3 4 5 3 chunks +13 lines, -6 lines 0 comments Download
M src/gpu/glsl/GrGLSLProgramBuilder.cpp View 1 2 3 4 5 5 chunks +82 lines, -11 lines 0 comments Download
M src/gpu/glsl/GrGLSLShaderBuilder.h View 1 1 chunk +0 lines, -10 lines 0 comments Download
M src/gpu/vk/GrVkCaps.h View 1 2 3 4 5 3 chunks +1 line, -14 lines 0 comments Download
M src/gpu/vk/GrVkCaps.cpp View 1 2 3 4 5 6 5 chunks +10 lines, -10 lines 0 comments Download
M src/gpu/vk/GrVkProgramBuilder.h View 1 2 3 4 5 2 chunks +1 line, -4 lines 0 comments Download
M src/gpu/vk/GrVkProgramBuilder.cpp View 1 2 chunks +1 line, -18 lines 0 comments Download
M src/gpu/vk/GrVkTexture.cpp View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M tests/EGLImageTest.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 13 (5 generated)
Chris Dalton
Greg, I'm looking for guidance on how to set up these texture limits for Vulkan.
4 years, 9 months ago (2016-03-09 19:27:47 UTC) #3
Chris Dalton
https://codereview.chromium.org/1782583002/diff/40001/src/gpu/gl/builders/GrGLProgramBuilder.h File src/gpu/gl/builders/GrGLProgramBuilder.h (right): https://codereview.chromium.org/1782583002/diff/40001/src/gpu/gl/builders/GrGLProgramBuilder.h#newcode42 src/gpu/gl/builders/GrGLProgramBuilder.h:42: void nameSampler(int idx, SkString* name) override { name->printf("Sampler%d", idx); ...
4 years, 9 months ago (2016-03-10 08:36:04 UTC) #4
bsalomon
Everything but the Vk side lgtm (nothing looks bad in Vk, just leaving that up ...
4 years, 9 months ago (2016-03-11 14:08:36 UTC) #5
egdaniel
Vulkan stuff seems fine to me. If you want to use the same sampler name ...
4 years, 9 months ago (2016-03-11 14:22:27 UTC) #6
Chris Dalton
Greg, thanks for the review. Can I just get a quick signoff on the new ...
4 years, 9 months ago (2016-03-11 17:10:24 UTC) #7
egdaniel
On 2016/03/11 17:10:24, Chris Dalton wrote: > Greg, thanks for the review. > > Can ...
4 years, 9 months ago (2016-03-11 17:17:55 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1782583002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1782583002/120001
4 years, 9 months ago (2016-03-11 17:49:37 UTC) #11
commit-bot: I haz the power
4 years, 9 months ago (2016-03-11 18:07:40 UTC) #13
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://skia.googlesource.com/skia/+/9c3f14327a38e79ab7d0cf30dfd9bf89676fde06

Powered by Google App Engine
This is Rietveld 408576698