anv/meta_resolve: Set origin_upper_left on gl_FragCoord

It's required by the spec and any shaders that don't set it will be broken.
I'm not really sure how multisampling was even working before...
This commit is contained in:
Jason Ekstrand 2016-02-15 12:44:39 -08:00
parent 88042b9f10
commit 08ecd8a8d1
1 changed files with 1 additions and 0 deletions

View File

@ -134,6 +134,7 @@ build_nir_fs(uint32_t num_samples)
v_position = nir_variable_create(b.shader, nir_var_shader_in, vec4,
"v_position");
v_position->data.location = VARYING_SLOT_POS;
v_position->data.origin_upper_left = true;
v_tex_position = nir_variable_create(b.shader, nir_var_shader_in, vec4,
"v_tex_position");