diff options
author | Chris Forbes <[email protected]> | 2012-11-22 16:23:21 +1300 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2012-11-26 16:34:28 -0800 |
commit | c3c680950d9f7736723469ff74d0a3c9bbcaaeb1 (patch) | |
tree | 69e35deda04761dd6b486c7d63461e9f53c2dd3d /src/mesa/drivers/dri/i965/brw_vs.c | |
parent | 23f4411c41f96a1b755259c4a6b23747e95a5ece (diff) |
i965: Generalize GL_FIXED VS w/a support
Next few patches build on this to add other workarounds
for packed formats.
V2: rename BRW_ATTRIB_WA_COMPONENTS to BRW_ATTRIB_WA_COMPONENT_MASK;
V3 (Kayden): remove separate bit for ES3 signed normalization
Signed-off-by: Chris Forbes <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_vs.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_vs.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vs.c b/src/mesa/drivers/dri/i965/brw_vs.c index 446673133cf..f764f526f9c 100644 --- a/src/mesa/drivers/dri/i965/brw_vs.c +++ b/src/mesa/drivers/dri/i965/brw_vs.c @@ -362,9 +362,9 @@ brw_vs_debug_recompile(struct brw_context *brw, } for (unsigned int i = 0; i < VERT_ATTRIB_MAX; i++) { - found |= key_debug("GL_FIXED rescaling", - old_key->gl_fixed_input_size[i], - key->gl_fixed_input_size[i]); + found |= key_debug("Vertex attrib w/a flags", + old_key->gl_attrib_wa_flags[i], + key->gl_attrib_wa_flags[i]); } found |= key_debug("user clip flags", @@ -446,9 +446,10 @@ static void brw_upload_vs_prog(struct brw_context *brw) /* BRW_NEW_VERTICES */ for (i = 0; i < VERT_ATTRIB_MAX; i++) { + /* TODO: flag w/a for packed vertex formats here too */ if (vp->program.Base.InputsRead & BITFIELD64_BIT(i) && brw->vb.inputs[i].glarray->Type == GL_FIXED) { - key.gl_fixed_input_size[i] = brw->vb.inputs[i].glarray->Size; + key.gl_attrib_wa_flags[i] = brw->vb.inputs[i].glarray->Size; } } |