diff options
author | Timothy Arceri <[email protected]> | 2017-03-03 10:12:09 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2017-03-09 09:29:07 +1100 |
commit | 0e34966340c76225223e534536526e846b0654fb (patch) | |
tree | 526feb5d1af12923caaecf68c1260eb143e1ecc3 /src/gallium/state_trackers/nine | |
parent | a45cd8107d03f657c2c0db9d5591ddc096964eeb (diff) |
st/nine: pass NULL to ureg_get_tokens()
The number of tokens in never used and the pointer is NULL checked
so just pass NULL.
Reviewed-by: Axel Davy <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/nine')
-rw-r--r-- | src/gallium/state_trackers/nine/nine_ff.c | 3 | ||||
-rw-r--r-- | src/gallium/state_trackers/nine/nine_shader.c | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/gallium/state_trackers/nine/nine_ff.c b/src/gallium/state_trackers/nine/nine_ff.c index 279ba374896..2175bdbcc51 100644 --- a/src/gallium/state_trackers/nine/nine_ff.c +++ b/src/gallium/state_trackers/nine/nine_ff.c @@ -171,8 +171,7 @@ static void nine_ff_prune_ps(struct NineDevice9 *); static void nine_ureg_tgsi_dump(struct ureg_program *ureg, boolean override) { if (debug_get_bool_option("NINE_FF_DUMP", FALSE) || override) { - unsigned count; - const struct tgsi_token *toks = ureg_get_tokens(ureg, &count); + const struct tgsi_token *toks = ureg_get_tokens(ureg, NULL); tgsi_dump(toks, 0); ureg_free_tokens(toks); } diff --git a/src/gallium/state_trackers/nine/nine_shader.c b/src/gallium/state_trackers/nine/nine_shader.c index 95bc6ec9035..7760a1ce1d3 100644 --- a/src/gallium/state_trackers/nine/nine_shader.c +++ b/src/gallium/state_trackers/nine/nine_shader.c @@ -3705,8 +3705,7 @@ nine_translate_shader(struct NineDevice9 *device, struct nine_shader_info *info, ureg_DECL_constant2D(tx->ureg, 0, 2, 4); /* Viewport data */ if (debug_get_bool_option("NINE_TGSI_DUMP", FALSE)) { - unsigned count; - const struct tgsi_token *toks = ureg_get_tokens(tx->ureg, &count); + const struct tgsi_token *toks = ureg_get_tokens(tx->ureg, NULL); tgsi_dump(toks, 0); ureg_free_tokens(toks); } |