summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2015-10-19 16:45:11 -0700
committerJason Ekstrand <[email protected]>2015-10-19 16:45:11 -0700
commit27ca9ca4e1ca2e98e073df303e4dbfa3a527b206 (patch)
treebdc2d5c97f0a7304ee0518ff65407794e42129b8 /src
parent661d0db0778f6bcb01ab2d59f7867aefd5dd3e18 (diff)
anv/compiler: Get rid of legacy shader key setup
Most of the shader key setup we did was for pre-Sandybridge and the stuff for SNB+ wasn't in the key setup. That stuff still isn't there but at least we've left ourselves notes for now.
Diffstat (limited to 'src')
-rw-r--r--src/vulkan/anv_compiler.cpp29
1 files changed, 2 insertions, 27 deletions
diff --git a/src/vulkan/anv_compiler.cpp b/src/vulkan/anv_compiler.cpp
index 3624563c879..87aae64942b 100644
--- a/src/vulkan/anv_compiler.cpp
+++ b/src/vulkan/anv_compiler.cpp
@@ -142,36 +142,11 @@ brw_vs_populate_key(struct brw_context *brw,
struct brw_vertex_program *vp,
struct brw_vs_prog_key *key)
{
- struct gl_context *ctx = &brw->ctx;
- /* BRW_NEW_VERTEX_PROGRAM */
- struct gl_program *prog = (struct gl_program *) vp;
-
memset(key, 0, sizeof(*key));
- /* Just upload the program verbatim for now. Always send it all
- * the inputs it asks for, whether they are varying or not.
- */
- key->program_string_id = vp->id;
-
- /* _NEW_POLYGON */
- if (brw->gen < 6) {
- key->copy_edgeflag = (ctx->Polygon.FrontMode != GL_FILL ||
- ctx->Polygon.BackMode != GL_FILL);
- }
-
- if (prog->OutputsWritten & (VARYING_BIT_COL0 | VARYING_BIT_COL1 |
- VARYING_BIT_BFC0 | VARYING_BIT_BFC1)) {
- /* _NEW_LIGHT | _NEW_BUFFERS */
- key->clamp_vertex_color = ctx->Light._ClampVertexColor;
- }
+ /* XXX: Handle vertex input work-arounds */
- /* _NEW_POINT */
- if (brw->gen < 6 && ctx->Point.PointSprite) {
- for (int i = 0; i < 8; i++) {
- if (ctx->Point.CoordReplace[i])
- key->point_coord_replace |= (1 << i);
- }
- }
+ /* XXX: Handle sampler_prog_key */
}
static bool