diff options
author | Marek Olšák <[email protected]> | 2012-08-02 01:43:01 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2012-08-04 14:05:52 +0200 |
commit | cb922b63eba1d75706354614bc5de4d39dbe9ad3 (patch) | |
tree | a3d2a0c46db235c4546d5a3d8cefdbf75a5859a6 /src/gallium/drivers/r600/r600_resource.h | |
parent | cdc681c3ad746fe8adab4ea71358bcc54e024ff9 (diff) |
r600g: precompute color buffer state in pipe_surface and reuse it
Diffstat (limited to 'src/gallium/drivers/r600/r600_resource.h')
-rw-r--r-- | src/gallium/drivers/r600/r600_resource.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_resource.h b/src/gallium/drivers/r600/r600_resource.h index d56fe4ae731..0eaf10af160 100644 --- a/src/gallium/drivers/r600/r600_resource.h +++ b/src/gallium/drivers/r600/r600_resource.h @@ -70,8 +70,25 @@ struct r600_resource_texture { struct r600_surface { struct pipe_surface base; + bool color_initialized; bool depth_initialized; + /* Misc. color flags. */ + bool alphatest_bypass; + bool export_16bpc; + + /* Color registers. */ + unsigned cb_color_info; + unsigned cb_color_base; + unsigned cb_color_view; + unsigned cb_color_size; /* R600 only */ + unsigned cb_color_frag; /* R600 only */ + unsigned cb_color_tile; /* R600 only */ + unsigned cb_color_dim; /* EG only */ + unsigned cb_color_pitch; /* EG only */ + unsigned cb_color_slice; /* EG only */ + unsigned cb_color_attrib; /* EG only */ + /* DB registers. */ unsigned db_depth_info; /* DB_Z_INFO (EG) or DB_DEPTH_INFO (r600) */ unsigned db_depth_base; /* DB_Z_READ/WRITE_BASE (EG) or DB_DEPTH_BASE (r600) */ |