diff options
author | Timothy Arceri <[email protected]> | 2016-07-06 12:41:02 +1000 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2016-07-07 12:29:12 +1000 |
commit | e0dc3109d50b2d73747db1f6d7ff31b2bd935539 (patch) | |
tree | 370bf1f3f9afe75a507473a5c63d72fb5531b974 /src/mesa/drivers | |
parent | 27e28197e8e82e8c47fda5d6e912c5cb62c03f4a (diff) |
i965: don't copy VS attribute work arounds for HSW+
These workarounds are not required for HSW and above so stop
copying them at VS key generation which is called at draw time.
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_vs.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vs.c b/src/mesa/drivers/dri/i965/brw_vs.c index 877bcb59e47..cda95f81f1b 100644 --- a/src/mesa/drivers/dri/i965/brw_vs.c +++ b/src/mesa/drivers/dri/i965/brw_vs.c @@ -348,8 +348,10 @@ brw_vs_populate_key(struct brw_context *brw, brw_populate_sampler_prog_key_data(ctx, prog, &key->tex); /* BRW_NEW_VS_ATTRIB_WORKAROUNDS */ - memcpy(key->gl_attrib_wa_flags, brw->vb.attrib_wa_flags, - sizeof(brw->vb.attrib_wa_flags)); + if (brw->gen < 8 && !brw->is_haswell) { + memcpy(key->gl_attrib_wa_flags, brw->vb.attrib_wa_flags, + sizeof(brw->vb.attrib_wa_flags)); + } } void |