3145cb8f4b
With this CL, rt adjust is handled automatically by the backend of the CommandBuffer when setViewport is called, so DrawPass and the CommandBufferTest are updated to configure that (and the geometry of command buffer test is rewritten to be in Skia's coord system instead of NDC). Currently, the metal command buffer uses push constants to set the rtAdjust uniform. Hypothetically, D3D12 could use the root descriptor, etc. There is some coupling here between the intrinsics the SkSL programming environment operates in, and the backends configuring the pipelines, but I don't think it's unreasonable and it seems cleaner to me than having DrawPass bind and upload uniforms for all of the intrinsics. Cq-Include-Trybots: luci.skia.skia.primary:Test-Mac11-Clang-MacMini9.1-GPU-AppleM1-arm64-Release-All-Graphite,Test-Mac11-Clang-MacMini9.1-GPU-AppleM1-arm64-Debug-All-ASAN_Graphite,Build-Mac-Clang-arm64-Release-iOS_Graphite,Build-Mac-Clang-arm64-Debug-iOS_Graphite,Build-Mac-Clang-arm64-Debug-Graphite_NoGpu,Build-Mac-Clang-arm64-Debug-Graphite,Build-Mac-Clang-arm64-Debug-ASAN_Graphite,Build-Mac-Clang-arm64-Release-Graphite Bug: skia:12466 Change-Id: Id91e9ffc31688886c5bf3ee6134567070820207a Reviewed-on: https://skia-review.googlesource.com/c/skia/+/478656 Commit-Queue: Michael Ludwig <michaelludwig@google.com> Auto-Submit: Michael Ludwig <michaelludwig@google.com> Reviewed-by: Jim Van Verth <jvanverth@google.com> |
||
---|---|---|
.. | ||
BackendTextureTest.cpp | ||
CommandBufferTest.cpp | ||
IntersectionTreeTest.cpp | ||
MaskTest.cpp | ||
MtlBackendTextureTest.mm | ||
RectTest.cpp | ||
ShapeTest.cpp | ||
TransformTest.cpp | ||
UniformCacheTest.cpp | ||
UniformTest.cpp |