summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan
diff options
context:
space:
mode:
authorJason Ekstrand <jason.ekstrand@intel.com>2016-07-22 15:59:22 -0700
committerJason Ekstrand <jason.ekstrand@intel.com>2016-07-22 16:48:54 -0700
commitb33bccb51917b9058541641702623bbe89841f1e (patch)
treef8f439cc6d8f10640f2e572daa4cd42a955b4a27 /src/intel/vulkan
parent9e05e51cff69dbb5da8588184c3b934e59c9a5ac (diff)
downloadexternal_mesa3d-b33bccb51917b9058541641702623bbe89841f1e.zip
external_mesa3d-b33bccb51917b9058541641702623bbe89841f1e.tar.gz
external_mesa3d-b33bccb51917b9058541641702623bbe89841f1e.tar.bz2
anv/pipeline: Set up point coord enables
Signed-off-by: Jason Ekstrand <jason@jlekstrand.net> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Tested-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Cc: "12.0" <mesa-stable@lists.freedesktop.org>
Diffstat (limited to 'src/intel/vulkan')
-rw-r--r--src/intel/vulkan/genX_pipeline_util.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/intel/vulkan/genX_pipeline_util.h b/src/intel/vulkan/genX_pipeline_util.h
index 52263df..516fc49 100644
--- a/src/intel/vulkan/genX_pipeline_util.h
+++ b/src/intel/vulkan/genX_pipeline_util.h
@@ -291,6 +291,11 @@ emit_3dstate_sbe(struct anv_pipeline *pipeline)
if (input_index < 0)
continue;
+ if (attr == VARYING_SLOT_PNTC) {
+ sbe.PointSpriteTextureCoordinateEnable = 1 << input_index;
+ continue;
+ }
+
const int slot = fs_input_map->varying_to_slot[attr];
if (input_index >= 16)