anv: Remove 'inline' keywords
Unless you have data, the compiler knows better than you whether a function should be inlined. No difference in the resulting binary with gcc-6.3.0 or clang-4.0. Reviewed-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
This commit is contained in:
@@ -101,7 +101,7 @@ genX(init_device_state)(struct anv_device *device)
|
||||
return anv_device_submit_simple_batch(device, &batch);
|
||||
}
|
||||
|
||||
static inline uint32_t
|
||||
static uint32_t
|
||||
vk_to_gen_tex_filter(VkFilter filter, bool anisotropyEnable)
|
||||
{
|
||||
switch (filter) {
|
||||
@@ -114,7 +114,7 @@ vk_to_gen_tex_filter(VkFilter filter, bool anisotropyEnable)
|
||||
}
|
||||
}
|
||||
|
||||
static inline uint32_t
|
||||
static uint32_t
|
||||
vk_to_gen_max_anisotropy(float ratio)
|
||||
{
|
||||
return (anv_clamp_f(ratio, 2, 16) - 2) / 2;
|
||||
|
Reference in New Issue
Block a user