OSDN Git Service

i965: Call spirv_to_nir() instead of glsl_to_nir() for SPIR-V shaders
authorEduardo Lima Mitev <elima@igalia.com>
Tue, 10 Oct 2017 12:55:56 +0000 (14:55 +0200)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Fri, 30 Mar 2018 07:14:56 +0000 (09:14 +0200)
commite7d97aa75ded652a36e8addad52d075c51b58c33
tree1c5afdd8f9f5f6e74a1691d9cd7feb5cd2db1df6
parentabb6d0797c8a0c32f45d38d7a41e96b2db47a47d
i965: Call spirv_to_nir() instead of glsl_to_nir() for SPIR-V shaders

This is the main fork of the shader compilation code-path, where a NIR
shader is obtained by calling spirv_to_nir() or glsl_to_nir(),
depending on its nature..

v2: Use 'spirv_data' member from gl_linked_shader to know which method
   to call. (Timothy Arceri)

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/mesa/drivers/dri/i965/brw_program.c