graphite: Use format index for pipeline render pass key

Dawn format enums were renumbered and now have values larger than 0xffff
for extension enums like unorm16 formats. Pipeline render pass keys use
16 bits for color and depth stencil formats. To avoid bloating the key
unnecessarily, use the format index from kFormats instead.

Also, include the write swizzle key as a part of the render pass desc
key rather than adding it separately, and make it all fit in uint64_t.

Bug: chromium:351964372
Change-Id: Ie32bdbb6e452e7f86de15ae08e49faf36eb006ac
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/874796
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
Auto-Submit: Sunny Sachanandani <sunnyps@chromium.org>
Commit-Queue: Michael Ludwig <michaelludwig@google.com>
2 files changed