summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/ilo/ilo_gpe.h
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2013-06-03 15:34:13 +0800
committerChia-I Wu <[email protected]>2013-06-07 11:13:16 +0800
commit4006f4ce265199b1ad8dfc9e8ca7fb5176a44527 (patch)
tree7d05b96a673719b1b5eb16dd27ac96d5d850b893 /src/gallium/drivers/ilo/ilo_gpe.h
parent5354dc742899c498a97fe6f64cc5d9237beb1e9f (diff)
ilo: use emit_SURFACE_STATE() for render targets
Introduce ilo_surface_cso and initialize it in create_surface(). With the change, we can emit SURFACE_STATE directly from the CSO and remove emit_surf_SURFACE_STATE(). We do not deal with depth/stencil surfaces yet.
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_gpe.h')
-rw-r--r--src/gallium/drivers/ilo/ilo_gpe.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gallium/drivers/ilo/ilo_gpe.h b/src/gallium/drivers/ilo/ilo_gpe.h
index 9103b261c20..b31dbf2ee7a 100644
--- a/src/gallium/drivers/ilo/ilo_gpe.h
+++ b/src/gallium/drivers/ilo/ilo_gpe.h
@@ -194,6 +194,15 @@ struct ilo_resource_state {
unsigned count;
};
+struct ilo_surface_cso {
+ struct pipe_surface base;
+
+ bool is_rt;
+ union {
+ struct ilo_view_surface rt;
+ } u;
+};
+
struct ilo_fb_state {
struct pipe_framebuffer_state state;