diff options
author | Xavier Bouchoux <[email protected]> | 2014-12-17 23:10:04 +0100 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2015-01-22 22:16:17 +0000 |
commit | dc8898918900a584b1783c99e77b6310f3834f11 (patch) | |
tree | 924c4c767c85275b77c36e3e592eee2542080579 /src/gallium | |
parent | d2f2a550cf590ec1c9c4d94e07e1f0a0c837f891 (diff) |
st/nine: Fix D3DRS_POINTSPRITE support
It's done by testing the existence of the point sprite output register *after* parsing the vertex shader.
Reviewed-by: Ilia Mirkin <[email protected]>
Reviewed-by: David Heidelberg <[email protected]>
Reviewed-by: Axel Davy <[email protected]>
Signed-off-by: Xavier Bouchoux <[email protected]>
Cc: "10.4" <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/state_trackers/nine/nine_shader.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/state_trackers/nine/nine_shader.c b/src/gallium/state_trackers/nine/nine_shader.c index c2a0f4dbd9d..fcc1c680f60 100644 --- a/src/gallium/state_trackers/nine/nine_shader.c +++ b/src/gallium/state_trackers/nine/nine_shader.c @@ -2842,9 +2842,6 @@ nine_translate_shader(struct NineDevice9 *device, struct nine_shader_info *info) ureg_property(tx->ureg, TGSI_PROPERTY_FS_COORD_PIXEL_CENTER, TGSI_FS_COORD_PIXEL_CENTER_INTEGER); } - if (!ureg_dst_is_undef(tx->regs.oPts)) - info->point_size = TRUE; - while (!sm1_parse_eof(tx)) sm1_parse_instruction(tx); tx->parse++; /* for byte_size */ @@ -2860,6 +2857,9 @@ nine_translate_shader(struct NineDevice9 *device, struct nine_shader_info *info) ureg_END(tx->ureg); + if (IS_VS && !ureg_dst_is_undef(tx->regs.oPts)) + info->point_size = TRUE; + if (debug_get_bool_option("NINE_TGSI_DUMP", FALSE)) { unsigned count; const struct tgsi_token *toks = ureg_get_tokens(tx->ureg, &count); |