mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
nvfx: match Gallium's gl_PointCoord brokenness
Gallium always puts gl_PointCoord in GENERIC[0] if point_quad_rasterization is enabled. This is silly, but for now it makes mesa-demos/glsl/pointcoord work.
This commit is contained in:
parent
bfaa2577c6
commit
2e215bc28f
1 changed files with 5 additions and 2 deletions
|
|
@ -1181,8 +1181,11 @@ nvfx_fragprog_validate(struct nvfx_context *nvfx)
|
|||
struct nouveau_channel* chan = nvfx->screen->base.channel;
|
||||
struct nvfx_pipe_fragment_program *pfp = nvfx->fragprog;
|
||||
struct nvfx_vertex_program* vp;
|
||||
unsigned sprite_coord_enable = nvfx->rasterizer->pipe.point_quad_rasterization * nvfx->rasterizer->pipe.sprite_coord_enable;
|
||||
// TODO: correct or flipped?
|
||||
/* Gallium always puts the point coord in GENERIC[0]
|
||||
* TODO: this is wrong, Gallium needs to be fixed
|
||||
*/
|
||||
unsigned sprite_coord_enable = nvfx->rasterizer->pipe.point_quad_rasterization * (nvfx->rasterizer->pipe.sprite_coord_enable | 1);
|
||||
|
||||
boolean emulate_sprite_flipping = sprite_coord_enable && nvfx->rasterizer->pipe.sprite_coord_mode;
|
||||
unsigned key = emulate_sprite_flipping;
|
||||
struct nvfx_fragment_program* fp;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue