Mesa (master): anv/pipeline: Set up point coord enables
Jason Ekstrand
jekstrand at kemper.freedesktop.org
Fri Jul 22 23:20:51 UTC 2016
Module: Mesa
Branch: master
Commit: 4031efaa5796412df094e2cef6e26dcedf5f0395
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=4031efaa5796412df094e2cef6e26dcedf5f0395
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date: Fri Jul 22 15:59:22 2016 -0700
anv/pipeline: Set up point coord enables
Signed-off-by: Jason Ekstrand <jason at jlekstrand.net>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
Tested-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Cc: "12.0" <mesa-stable at lists.freedesktop.org>
---
src/intel/vulkan/genX_pipeline_util.h | 5 +++++
1 file changed, 5 insertions(+)
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)
More information about the mesa-commit
mailing list