diff options
author | Michel Dänzer <[email protected]> | 2012-08-08 15:35:42 +0200 |
---|---|---|
committer | Michel Dänzer <[email protected]> | 2012-08-08 15:33:38 +0200 |
commit | 82cd9c0fc2838a153006a646b0d356ed54b8680e (patch) | |
tree | 6e7665c1a14593555c74839da57b165cfe0dd994 /src/gallium/drivers/radeonsi/radeonsi_pipe.h | |
parent | be42a45e023aed5fd82647719bb81bee49a9a2ac (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.h | 4 |
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; |