summaryrefslogtreecommitdiffstats
path: root/src/vulkan/gen8_state.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-01-06 19:33:46 -0800
committerJason Ekstrand <[email protected]>2016-01-06 19:53:45 -0800
commitd8cd5e333e8095c87f9819d732ed1d7dfe63c2c8 (patch)
tree7ad7a91457709f0f9bb691e869a8fc3689483b58 /src/vulkan/gen8_state.c
parent195c60deb47dd5b7da0045facd5b07ba6e3cb2a2 (diff)
anv/state: Pull sampler vk-to-gen maps into genX_state_util.h
Diffstat (limited to 'src/vulkan/gen8_state.c')
-rw-r--r--src/vulkan/gen8_state.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/vulkan/gen8_state.c b/src/vulkan/gen8_state.c
index 14076d3f6c4..34be6677915 100644
--- a/src/vulkan/gen8_state.c
+++ b/src/vulkan/gen8_state.c
@@ -350,36 +350,6 @@ VkResult genX(CreateSampler)(
if (!sampler)
return vk_error(VK_ERROR_OUT_OF_HOST_MEMORY);
- static const uint32_t vk_to_gen_tex_filter[] = {
- [VK_FILTER_NEAREST] = MAPFILTER_NEAREST,
- [VK_FILTER_LINEAR] = MAPFILTER_LINEAR
- };
-
- static const uint32_t vk_to_gen_mipmap_mode[] = {
- [VK_SAMPLER_MIPMAP_MODE_BASE] = MIPFILTER_NONE,
- [VK_SAMPLER_MIPMAP_MODE_NEAREST] = MIPFILTER_NEAREST,
- [VK_SAMPLER_MIPMAP_MODE_LINEAR] = MIPFILTER_LINEAR
- };
-
- static const uint32_t vk_to_gen_tex_address[] = {
- [VK_SAMPLER_ADDRESS_MODE_REPEAT] = TCM_WRAP,
- [VK_SAMPLER_ADDRESS_MODE_MIRRORED_REPEAT] = TCM_MIRROR,
- [VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_EDGE] = TCM_CLAMP,
- [VK_SAMPLER_ADDRESS_MODE_MIRROR_CLAMP_TO_EDGE] = TCM_MIRROR_ONCE,
- [VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_BORDER] = TCM_CLAMP_BORDER,
- };
-
- static const uint32_t vk_to_gen_compare_op[] = {
- [VK_COMPARE_OP_NEVER] = PREFILTEROPNEVER,
- [VK_COMPARE_OP_LESS] = PREFILTEROPLESS,
- [VK_COMPARE_OP_EQUAL] = PREFILTEROPEQUAL,
- [VK_COMPARE_OP_LESS_OR_EQUAL] = PREFILTEROPLEQUAL,
- [VK_COMPARE_OP_GREATER] = PREFILTEROPGREATER,
- [VK_COMPARE_OP_NOT_EQUAL] = PREFILTEROPNOTEQUAL,
- [VK_COMPARE_OP_GREATER_OR_EQUAL] = PREFILTEROPGEQUAL,
- [VK_COMPARE_OP_ALWAYS] = PREFILTEROPALWAYS,
- };
-
if (pCreateInfo->maxAnisotropy > 1) {
mag_filter = MAPFILTER_ANISOTROPIC;
min_filter = MAPFILTER_ANISOTROPIC;