mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-11 01:30:25 +01:00
r600g: Simplify out a couple of unnecessary branches
Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
This commit is contained in:
parent
2d8f7d3c15
commit
d351bab9c5
1 changed files with 2 additions and 6 deletions
|
|
@ -1966,13 +1966,9 @@ static int r600_shader_from_tgsi(struct r600_context *rctx,
|
|||
|
||||
ctx.nliterals = 0;
|
||||
ctx.literals = NULL;
|
||||
shader->fs_write_all = FALSE;
|
||||
if (ctx.info.properties[TGSI_PROPERTY_FS_COLOR0_WRITES_ALL_CBUFS])
|
||||
shader->fs_write_all = TRUE;
|
||||
|
||||
shader->vs_position_window_space = FALSE;
|
||||
if (ctx.info.properties[TGSI_PROPERTY_VS_WINDOW_SPACE_POSITION])
|
||||
shader->vs_position_window_space = TRUE;
|
||||
shader->fs_write_all = ctx.info.properties[TGSI_PROPERTY_FS_COLOR0_WRITES_ALL_CBUFS];
|
||||
shader->vs_position_window_space = ctx.info.properties[TGSI_PROPERTY_VS_WINDOW_SPACE_POSITION];
|
||||
|
||||
if (shader->vs_as_gs_a)
|
||||
vs_add_primid_output(&ctx, key.vs.prim_id_out);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue