radv: Store shaders in VRAM.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sun, 12 Mar 2017 13:12:19 +0000 (14:12 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Mon, 13 Mar 2017 01:14:29 +0000 (02:14 +0100)
commit7c282b3ca11aa1d9e05bd7fea19bbf464ac5e6fb
tree9a2b77a2a63c409e73c1cf003a0ac8080b9f6b23
parente27fdbcb4c951bba0649cf60f2ae377f842267bb
radv: Store shaders in VRAM.

Less IFETCH latency on misses. Shader code is write once read many,
so GTT doesn't make much sense anyway.

If it turns out to fragment the CPU visible VRAM too much, we can upload with SDMA.

Signed-off-by: Bas Nieuwenhuizen <basni@google.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_pipeline.c
src/amd/vulkan/radv_pipeline_cache.c