mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 19:30:11 +01:00
radeonsi: assume that a VS without POSITION is LS
Tested-by: Edmondo Tommasina <edmondo.tommasina@gmail.com> Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
parent
7dbf83af54
commit
e59389d738
1 changed files with 7 additions and 0 deletions
|
|
@ -1124,6 +1124,13 @@ static void si_parse_next_shader_property(const struct tgsi_shader_info *info,
|
|||
case PIPE_SHADER_TESS_EVAL:
|
||||
key->vs.as_ls = 1;
|
||||
break;
|
||||
default:
|
||||
/* If POSITION isn't written, it can't be a HW VS.
|
||||
* Assume that it's a HW LS. (the next shader is TCS)
|
||||
* This heuristic is needed for separate shader objects.
|
||||
*/
|
||||
if (!info->writes_position)
|
||||
key->as_ls = 1;
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue