intel/compiler,crocus: decouple vulkan driver and compiler from gallium
I'd like to mention that swizzle is a shader concept https://www.khronos.org/opengl/wiki/Data_Type_(GLSL)#Swizzling, and indeed both glsl and vulkan have that concept. As intel is already have exactly same thing repeat prog_instruction.h
, I prefer use intel's version in this MR even though I think they can be shared.
indeed compiler/glsl/*
is already using defines of form SWIZZLE_*
from prog_instruction.h
, so I think SWIZZLE_*
should belongs to either compiler/shader_enums.h
or some header in compiler/glsl/
(which I don't know what is proper)
Edited by Yonggang Luo