summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/anv_pipeline.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2019-01-19 17:50:23 -0600
committerJason Ekstrand <[email protected]>2019-01-21 11:57:00 -0600
commit2aa78e46e9746174e24a192eefd4e3fee703a357 (patch)
tree56642d122194f9c463eb738c5eea6946a260e1ab /src/intel/vulkan/anv_pipeline.c
parent344171b9ee7b23e06977847652b370568dc423b3 (diff)
anv/pipeline: Add a pdevice helper variable
Reviewed-by: Lionel Landwerlin <[email protected]> Reviewed-by: Iago Toral Quiroga <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_pipeline.c')
-rw-r--r--src/intel/vulkan/anv_pipeline.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/intel/vulkan/anv_pipeline.c b/src/intel/vulkan/anv_pipeline.c
index 36204051c35..461497561e8 100644
--- a/src/intel/vulkan/anv_pipeline.c
+++ b/src/intel/vulkan/anv_pipeline.c
@@ -104,8 +104,9 @@ anv_shader_compile_to_nir(struct anv_device *device,
gl_shader_stage stage,
const VkSpecializationInfo *spec_info)
{
- const struct brw_compiler *compiler =
- device->instance->physicalDevice.compiler;
+ const struct anv_physical_device *pdevice =
+ &device->instance->physicalDevice;
+ const struct brw_compiler *compiler = pdevice->compiler;
const nir_shader_compiler_options *nir_options =
compiler->glsl_compiler_options[stage].NirOptions;
@@ -136,17 +137,17 @@ anv_shader_compile_to_nir(struct anv_device *device,
.caps = {
.device_group = true,
.draw_parameters = true,
- .float64 = device->instance->physicalDevice.info.gen >= 8,
+ .float64 = pdevice->info.gen >= 8,
.image_write_without_format = true,
- .int16 = device->instance->physicalDevice.info.gen >= 8,
- .int64 = device->instance->physicalDevice.info.gen >= 8,
+ .int16 = pdevice->info.gen >= 8,
+ .int64 = pdevice->info.gen >= 8,
.min_lod = true,
.multiview = true,
- .post_depth_coverage = device->instance->physicalDevice.info.gen >= 9,
+ .post_depth_coverage = pdevice->info.gen >= 9,
.shader_viewport_index_layer = true,
- .stencil_export = device->instance->physicalDevice.info.gen >= 9,
- .storage_8bit = device->instance->physicalDevice.info.gen >= 8,
- .storage_16bit = device->instance->physicalDevice.info.gen >= 8,
+ .stencil_export = pdevice->info.gen >= 9,
+ .storage_8bit = pdevice->info.gen >= 8,
+ .storage_16bit = pdevice->info.gen >= 8,
.subgroup_arithmetic = true,
.subgroup_basic = true,
.subgroup_ballot = true,