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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user