anv: Set max_hs_threads/max_ds_threads
authorKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Fri, 12 Feb 2016 05:11:48 +0000 (21:11 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 24 Feb 2016 20:21:26 +0000 (12:21 -0800)
src/intel/vulkan/anv_pipeline.c

index 92c5c35699ca0e298943cc6806487a0b64d160bd..1173b4f0cba209109d5d522397928dcc7e851553 100644 (file)
@@ -420,8 +420,8 @@ anv_pipeline_add_compiled_stage(struct anv_pipeline *pipeline,
    struct brw_device_info *devinfo = &pipeline->device->info;
    uint32_t max_threads[] = {
       [MESA_SHADER_VERTEX]                  = devinfo->max_vs_threads,
-      [MESA_SHADER_TESS_CTRL]               = 0,
-      [MESA_SHADER_TESS_EVAL]               = 0,
+      [MESA_SHADER_TESS_CTRL]               = devinfo->max_hs_threads,
+      [MESA_SHADER_TESS_EVAL]               = devinfo->max_ds_threads,
       [MESA_SHADER_GEOMETRY]                = devinfo->max_gs_threads,
       [MESA_SHADER_FRAGMENT]                = devinfo->max_wm_threads,
       [MESA_SHADER_COMPUTE]                 = devinfo->max_cs_threads,