summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi/radeonsi_pipe.h
diff options
context:
space:
mode:
authorMichel Dänzer <[email protected]>2012-09-07 16:09:08 +0200
committerMichel Dänzer <[email protected]>2012-09-11 11:06:56 +0200
commit9ccaa24f8493ebc4e5a606679490e4936ba3c624 (patch)
tree958d3aa35074bf423d8ec73eb42f1c02a00bd7a4 /src/gallium/drivers/radeonsi/radeonsi_pipe.h
parent03dfa305968adcf511f822757c106912419d6664 (diff)
radeonsi: Texture border colour fixes.
* Handle arbitrary border colours. * Use correct packing format for detecting special border colours. Fixes piglit tex-border-1 and probably many other tests using border colours. 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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/radeonsi_pipe.h b/src/gallium/drivers/radeonsi/radeonsi_pipe.h
index a23f34fe7b9..4253dbb19ad 100644
--- a/src/gallium/drivers/radeonsi/radeonsi_pipe.h
+++ b/src/gallium/drivers/radeonsi/radeonsi_pipe.h
@@ -76,6 +76,7 @@ struct si_pipe_sampler_view {
struct si_pipe_sampler_state {
uint32_t val[4];
+ float border_color[4];
};
/* needed for blitter save */
@@ -137,6 +138,8 @@ struct r600_context {
boolean alpha_ref_dirty;
struct r600_textures_info vs_samplers;
struct r600_textures_info ps_samplers;
+ struct si_resource *border_color_table;
+ unsigned border_color_offset;
boolean shader_dirty;
struct u_upload_mgr *uploader;