st/nine: Fix invalid attempt to use indirect draws.
authorTrevor Davenport <trevor.davenport@gmail.com>
Wed, 10 Aug 2016 03:28:07 +0000 (20:28 -0700)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 10 Aug 2016 13:02:20 +0000 (15:02 +0200)
Since commit 6d7177f01b231e9fe79a558c28d2b562a218d7ea, radeonsi
would take a different path if info->indirect_params was not
initialized properly.  Nine was not initializating this field.

Signed-off-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/state_trackers/nine/device9.c

index d233304d7f921749c92e0ec5b9af2dc2c938c2e8..3f6577c076bffc8df2ba228fd5c1638bcc6d493d 100644 (file)
@@ -2935,6 +2935,7 @@ init_draw_info(struct pipe_draw_info *info,
     info->restart_index = 0;
     info->count_from_stream_output = NULL;
     info->indirect = NULL;
+    info->indirect_params = NULL;
 }
 
 HRESULT NINE_WINAPI