mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-21 11:30:11 +01:00
crocus: Clamp VS point sizes to the HW limits as required.
Fixes piglit vs-point-size-zero. Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14238>
This commit is contained in:
parent
39ea803f9f
commit
3077d96856
2 changed files with 3 additions and 3 deletions
|
|
@ -113,9 +113,6 @@ spec@!opengl 1.4@gl-1.4-polygon-offset,Fail
|
|||
spec@!opengl 2.0@max-samplers,Fail
|
||||
spec@!opengl 2.0@max-samplers border,Fail
|
||||
|
||||
# "Fail: nothing rendered."
|
||||
spec@!opengl 2.0@vs-point_size-zero,Fail
|
||||
|
||||
# Regression from i965
|
||||
# "data not copied"
|
||||
spec@arb_copy_buffer@targets,Fail
|
||||
|
|
|
|||
|
|
@ -2701,6 +2701,9 @@ crocus_create_uncompiled_shader(struct pipe_context *ctx,
|
|||
NIR_PASS_V(nir, brw_nir_lower_storage_image, devinfo);
|
||||
NIR_PASS_V(nir, crocus_lower_storage_image_derefs);
|
||||
|
||||
if (nir->info.stage != MESA_SHADER_FRAGMENT && nir->info.stage != MESA_SHADER_COMPUTE)
|
||||
NIR_PASS_V(nir, nir_lower_point_size, 1.0, 255.0);
|
||||
|
||||
nir_sweep(nir);
|
||||
|
||||
ish->program_id = get_new_program_id(screen);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue