summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi/radeonsi_pipe.h
diff options
context:
space:
mode:
authorMichel Dänzer <[email protected]>2012-08-08 15:35:42 +0200
committerMichel Dänzer <[email protected]>2012-08-08 15:33:38 +0200
commit82cd9c0fc2838a153006a646b0d356ed54b8680e (patch)
tree6e7665c1a14593555c74839da57b165cfe0dd994 /src/gallium/drivers/radeonsi/radeonsi_pipe.h
parentbe42a45e023aed5fd82647719bb81bee49a9a2ac (diff)
radeonsi: If pixel shader compilation fails, use a dummy shader.
Otherwise we're likely to hang the GPU. Signed-off-by: Michel Dänzer <[email protected]> Reviewed-by: Alex Deucher <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/radeonsi_pipe.h')
-rw-r--r--src/gallium/drivers/radeonsi/radeonsi_pipe.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/radeonsi_pipe.h b/src/gallium/drivers/radeonsi/radeonsi_pipe.h
index bde468c64fe..3bba6d1a893 100644
--- a/src/gallium/drivers/radeonsi/radeonsi_pipe.h
+++ b/src/gallium/drivers/radeonsi/radeonsi_pipe.h
@@ -206,6 +206,10 @@ struct r600_context {
struct pipe_vertex_buffer vertex_buffer[PIPE_MAX_ATTRIBS];
unsigned nr_vertex_buffers;
+ /* With rasterizer discard, there doesn't have to be a pixel shader.
+ * In that case, we bind this one: */
+ struct si_pipe_shader *dummy_pixel_shader;
+
/* SI state handling */
union si_state queued;
union si_state emitted;