microsoft/compiler: Maintain sorting of resource type in the context

This change moves the SRVs associated with read-only SSBOs to be emitted
before any other UAV. We do this because the validator expects resources
to be emitted in a specific order, as noted by `emit_module`.

Previously, we emitted SSBOs as SRVs (read-only) or UAVs (read-write)
after other UAVs.

Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <!10514>
35 jobs for !10514 with fix-ssbo-srv-uav-order in 12 minutes and 48 seconds (queued for 5 seconds)
latest detached
Status Job ID Name Coverage
  Sanity
passed #9327346
sanity

00:00:20

 
  Container
passed #9327351
aarch64
arm_build

00:00:19

passed #9327353
windows shell 1809 mesa
windows_build_vs2019

00:00:09

passed #9327348
x86_build-base

00:00:23

passed #9327350
x86_test-base

00:00:14

 
  Container 2
passed #9327362
android_build

00:00:17

passed #9327357
i386_build

00:00:20

passed #9327367
kernel+rootfs_amd64

00:00:23

passed #9327369
aarch64
kernel+rootfs_arm64

00:01:13

passed #9327371
aarch64
kernel+rootfs_armhf

00:00:11

passed #9327359
ppc64el_build

00:00:17

passed #9327360
s390x_build

00:00:20

passed #9327356
x86_build

00:00:17

passed #9327364
x86_test-gl

00:00:15

passed #9327366
x86_test-vk

00:00:16

 
  Meson X86 64
passed #9327382
meson-clang

00:10:11

passed #9327383
meson-clover

00:04:03

passed #9327377
meson-clover-testing

00:01:27

passed #9327378
meson-gallium

00:05:27

passed #9327380
meson-release

00:03:25

passed #9327373
meson-testing

00:01:18

passed #9327375
meson-testing-asan

00:02:02

passed #9327385
meson-vulkan

00:03:38

 
  Build Misc
passed #9327387
arm_test

00:00:44

passed #9327388
meson-android

00:01:00

passed #9327392
aarch64
meson-arm64

00:01:20

passed #9327394
aarch64
meson-arm64-asan

00:03:44

passed #9327396
aarch64
meson-arm64-build-test

00:01:42

passed #9327390
aarch64
meson-armhf

00:01:44

passed #9327401
meson-i386

00:04:46

passed #9327406
meson-mingw32-x86_64

00:02:01

passed #9327405
meson-ppc64el

00:01:49

passed #9327402
kvm
meson-s390x

00:04:01

passed #9327398
windows docker 1809 mesa
meson-windows-vs2019

00:07:14

 
  Layered Backends
passed #9327408
windows docker 1809 mesa
test-d3d12-windows

00:04:56