Mesa (master): anv: Enable tessellation shaders.

Kenneth Graunke kwg at kemper.freedesktop.org
Tue Jan 10 22:04:12 UTC 2017


Module: Mesa
Branch: master
Commit: 23a36c28118f6967654e963fc37c6b4c3b37db1b
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=23a36c28118f6967654e963fc37c6b4c3b37db1b

Author: Kenneth Graunke <kenneth at whitecape.org>
Date:   Sun Sep 25 15:33:03 2016 -0700

anv: Enable tessellation shaders.

Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

---

 src/intel/vulkan/anv_device.c   | 2 +-
 src/intel/vulkan/anv_pipeline.c | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c
index bd33f10..f58d1ac 100644
--- a/src/intel/vulkan/anv_device.c
+++ b/src/intel/vulkan/anv_device.c
@@ -445,7 +445,7 @@ void anv_GetPhysicalDeviceFeatures(
       .imageCubeArray                           = true,
       .independentBlend                         = true,
       .geometryShader                           = true,
-      .tessellationShader                       = false,
+      .tessellationShader                       = true,
       .sampleRateShading                        = true,
       .dualSrcBlend                             = true,
       .logicOp                                  = true,
diff --git a/src/intel/vulkan/anv_pipeline.c b/src/intel/vulkan/anv_pipeline.c
index fdec3ce..6c939b0 100644
--- a/src/intel/vulkan/anv_pipeline.c
+++ b/src/intel/vulkan/anv_pipeline.c
@@ -126,6 +126,7 @@ anv_shader_compile_to_nir(struct anv_device *device,
 
    const struct nir_spirv_supported_extensions supported_ext = {
       .float64 = device->instance->physicalDevice.info.gen >= 8,
+      .tessellation = true,
    };
 
    nir_function *entry_point =




More information about the mesa-commit mailing list