diff options
author | Eric Anholt <[email protected]> | 2011-06-08 13:44:00 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2011-06-10 13:17:10 -0700 |
commit | 4176025d463e7733dac19788b45b6472b65d62d4 (patch) | |
tree | dd3b65d31e5f46a6b4f7c48ee7151c4de77da514 /src/mesa/drivers/dri/i965/brw_vs.h | |
parent | 20f087863d00fed9823791a447932e74d77cc546 (diff) |
i965: Add support for GL_FIXED vertex attributes.
This sadly requires work in the VS to rescale them, because the
hardware doesn't support this format natively.
Fixes arb_es2_compatibility-fixed-type and gtf/fixed_data_type.
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_vs.h')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_vs.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vs.h b/src/mesa/drivers/dri/i965/brw_vs.h index 7ca84a54b01..432994a8534 100644 --- a/src/mesa/drivers/dri/i965/brw_vs.h +++ b/src/mesa/drivers/dri/i965/brw_vs.h @@ -41,6 +41,10 @@ struct brw_vs_prog_key { GLuint program_string_id; + /** + * Number of channels of the vertex attribute that need GL_FIXED rescaling + */ + uint8_t gl_fixed_input_size[VERT_ATTRIB_MAX]; GLuint nr_userclip:4; GLuint copy_edgeflag:1; GLuint point_coord_replace:8; |