Re: [Mesa-dev] [PATCH] spirv: Flip the tessellation winding order

2017-05-25 Thread Jason Ekstrand
On Thu, May 25, 2017 at 7:07 AM, Marek Olšák wrote: > On Wed, May 24, 2017 at 8:34 PM, Jason Ekstrand > wrote: > > It's not SPIR-V that's backwards from GLSL, it's Vulkan that's backwards > > from GL. Let's make NIR consistent with the source language and do the > > flipping inside the Vulkan d

Re: [Mesa-dev] [PATCH] spirv: Flip the tessellation winding order

2017-05-25 Thread Marek Olšák
On Wed, May 24, 2017 at 8:34 PM, Jason Ekstrand wrote: > It's not SPIR-V that's backwards from GLSL, it's Vulkan that's backwards > from GL. Let's make NIR consistent with the source language and do the > flipping inside the Vulkan driver instead. I wonder why that is. Note that GL is backwards

[Mesa-dev] [PATCH] spirv: Flip the tessellation winding order

2017-05-24 Thread Jason Ekstrand
It's not SPIR-V that's backwards from GLSL, it's Vulkan that's backwards from GL. Let's make NIR consistent with the source language and do the flipping inside the Vulkan driver instead. Cc: Kenneth Graunke Cc: Dave Airlie --- src/compiler/spirv/spirv_to_nir.c | 9 ++--- src/intel/vulkan/