i965g: setup nr_attrs should track nr fragment shader inputs
This would be equivalent to taking the nr outputs of the vp varient
This commit is contained in:
parent
1b9eda4c74
commit
8db59a1fa3
|
@ -124,8 +124,12 @@ static enum pipe_error upload_sf_prog(struct brw_context *brw)
|
|||
|
||||
/* Populate the key, noting state dependencies:
|
||||
*/
|
||||
/* CACHE_NEW_VS_PROG */
|
||||
key.nr_attrs = brw->curr.vertex_shader->info.file_max[TGSI_FILE_OUTPUT] + 1;
|
||||
|
||||
/* XXX: Add one to turn the max value into a count, then add
|
||||
* another one to account for the position input.
|
||||
*/
|
||||
/* PIPE_NEW_FRAGMENT_SHADER */
|
||||
key.nr_attrs = brw->curr.vertex_shader->info.file_max[TGSI_FILE_INPUT] + 2;
|
||||
|
||||
|
||||
/* XXX: this is probably where the mapping between vertex shader
|
||||
|
|
Loading…
Reference in New Issue