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

Issue 1846963004: Infer sampler precision from pixel config (Closed)

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

Description

Infer sampler precision from pixel config Adds a "samplerPrecision" method to GrGLSLCaps and updates GrGLSLProgramBuilder to infer a sampler's precision based on its config and visibility. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1846963004 Committed: https://skia.googlesource.com/skia/+/a6b92ad1f7b79106caef6a4c721903544f507a02

Patch Set 1 #

Patch Set 2 : comments #

Total comments: 2

Patch Set 3 : bug #

Patch Set 4 : one more bug #

Patch Set 5 : updated vulkan precisions #

Patch Set 6 : #

Patch Set 7 : rebase, create dependency chain #

Total comments: 1

Patch Set 8 : Sampler precisions in caps #

Patch Set 9 : #

Patch Set 10 : msvc apparently does not support constexpr #

Patch Set 11 : ... and gcc doesn't like the enums #

Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -39 lines) Patch
M include/gpu/GrTextureAccess.h View 2 chunks +4 lines, -10 lines 0 comments Download
M src/gpu/GrTextureAccess.cpp View 1 chunk +4 lines, -9 lines 0 comments Download
M src/gpu/gl/GrGLCaps.cpp View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M src/gpu/gl/GrGLProgramDesc.cpp View 1 2 3 4 5 6 7 8 9 10 2 chunks +18 lines, -16 lines 0 comments Download
M src/gpu/glsl/GrGLSLCaps.h View 1 2 3 4 5 6 7 3 chunks +10 lines, -0 lines 0 comments Download
M src/gpu/glsl/GrGLSLCaps.cpp View 1 2 3 4 5 6 7 1 chunk +55 lines, -0 lines 0 comments Download
M src/gpu/glsl/GrGLSLProgramBuilder.cpp View 1 2 3 4 5 6 7 1 chunk +4 lines, -2 lines 0 comments Download
M src/gpu/vk/GrVkCaps.cpp View 1 2 3 4 5 6 7 1 chunk +15 lines, -0 lines 0 comments Download
M src/gpu/vk/GrVkProgramDesc.cpp View 1 2 3 4 5 6 7 2 chunks +3 lines, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 29 (13 generated)
Chris Dalton
4 years, 8 months ago (2016-04-01 22:14:14 UTC) #3
bsalomon
Can we make this dependent upon having variable precision? The caps has that information. On ...
4 years, 8 months ago (2016-04-04 13:00:01 UTC) #4
Chris Dalton
Patchset 2 should never cause us to generate an extraneous shader.
4 years, 8 months ago (2016-04-05 20:36:57 UTC) #6
Chris Dalton
(Added Greg for the VkCaps stuff)
4 years, 8 months ago (2016-04-05 20:37:14 UTC) #7
egdaniel
https://codereview.chromium.org/1846963004/diff/10001/src/gpu/vk/GrVkCaps.cpp File src/gpu/vk/GrVkCaps.cpp (right): https://codereview.chromium.org/1846963004/diff/10001/src/gpu/vk/GrVkCaps.cpp#newcode158 src/gpu/vk/GrVkCaps.cpp:158: for (int s = 0; s < kGrShaderTypeCount; ++s) ...
4 years, 8 months ago (2016-04-05 21:09:48 UTC) #9
Chris Dalton
https://codereview.chromium.org/1846963004/diff/10001/src/gpu/vk/GrVkCaps.cpp File src/gpu/vk/GrVkCaps.cpp (right): https://codereview.chromium.org/1846963004/diff/10001/src/gpu/vk/GrVkCaps.cpp#newcode158 src/gpu/vk/GrVkCaps.cpp:158: for (int s = 0; s < kGrShaderTypeCount; ++s) ...
4 years, 8 months ago (2016-04-05 21:54:49 UTC) #10
egdaniel
vulkan stuff looks fine to me
4 years, 8 months ago (2016-04-06 13:16:23 UTC) #11
bsalomon
https://codereview.chromium.org/1846963004/diff/110001/include/gpu/GrCaps.h File include/gpu/GrCaps.h (right): https://codereview.chromium.org/1846963004/diff/110001/include/gpu/GrCaps.h#newcode85 include/gpu/GrCaps.h:85: GrSLPrecision effectiveFloatPrecision(GrShaderType shaderType, GrSLPrecision precision) const { It still ...
4 years, 8 months ago (2016-04-06 13:35:56 UTC) #12
Chris Dalton
On 2016/04/06 13:35:56, bsalomon wrote: > https://codereview.chromium.org/1846963004/diff/110001/include/gpu/GrCaps.h > File include/gpu/GrCaps.h (right): > > https://codereview.chromium.org/1846963004/diff/110001/include/gpu/GrCaps.h#newcode85 > ...
4 years, 8 months ago (2016-04-06 21:37:08 UTC) #13
bsalomon
lgtm
4 years, 8 months ago (2016-04-11 13:23:18 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1846963004/150001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1846963004/150001
4 years, 8 months ago (2016-04-11 18:18:46 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: Build-Win-MSVC-x86_64-Debug-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Win-MSVC-x86_64-Debug-Trybot/builds/7834)
4 years, 8 months ago (2016-04-11 18:23:57 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1846963004/170001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1846963004/170001
4 years, 8 months ago (2016-04-11 18:41:13 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: Build-Ubuntu-GCC-Arm7-Debug-Android-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-GCC-Arm7-Debug-Android-Trybot/builds/7773)
4 years, 8 months ago (2016-04-11 18:43:30 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1846963004/190001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1846963004/190001
4 years, 8 months ago (2016-04-11 18:48:46 UTC) #27
commit-bot: I haz the power
4 years, 8 months ago (2016-04-11 19:03:11 UTC) #29
Message was sent while issue was closed.
Committed patchset #11 (id:190001) as
https://skia.googlesource.com/skia/+/a6b92ad1f7b79106caef6a4c721903544f507a02

Powered by Google App Engine
This is Rietveld 408576698