mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 09:48:07 +02:00
v3dv: fix incorrect key setup
We had this incorrectly included inside the body of loop over the subpass attachments so when all attachments are unused we would not set this correctly. Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24396>
This commit is contained in:
parent
ebe66479fb
commit
fc0ca7407b
1 changed files with 11 additions and 10 deletions
|
|
@ -1089,6 +1089,17 @@ pipeline_populate_v3d_fs_key(struct v3d_fs_key *key,
|
|||
key->is_points = (topology == MESA_PRIM_POINTS);
|
||||
key->is_lines = (topology >= MESA_PRIM_LINES &&
|
||||
topology <= MESA_PRIM_LINE_STRIP);
|
||||
|
||||
if (key->is_points) {
|
||||
/* This mask represents state for GL_ARB_point_sprite which is not
|
||||
* relevant to Vulkan.
|
||||
*/
|
||||
key->point_sprite_mask = 0;
|
||||
|
||||
/* Vulkan mandates upper left. */
|
||||
key->point_coord_upper_left = true;
|
||||
}
|
||||
|
||||
key->has_gs = has_geometry_shader;
|
||||
|
||||
const VkPipelineColorBlendStateCreateInfo *cb_info =
|
||||
|
|
@ -1165,16 +1176,6 @@ pipeline_populate_v3d_fs_key(struct v3d_fs_key *key,
|
|||
else if (util_format_is_pure_sint(fb_pipe_format))
|
||||
key->int_color_rb |= 1 << i;
|
||||
}
|
||||
|
||||
if (key->is_points) {
|
||||
/* This mask represents state for GL_ARB_point_sprite which is not
|
||||
* relevant to Vulkan.
|
||||
*/
|
||||
key->point_sprite_mask = 0;
|
||||
|
||||
/* Vulkan mandates upper left. */
|
||||
key->point_coord_upper_left = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue