diff options
author | Brian Paul <[email protected]> | 2008-03-19 18:10:09 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2008-03-19 18:10:09 -0600 |
commit | 122ed506f4b808503b230bade421018614dbe696 (patch) | |
tree | a5df6a4d6ddc14bbe0945c70e126a95ee961c974 /src/gallium/drivers/softpipe/sp_context.h | |
parent | ba31cf68551e409c7360995a35d836c22d9e0e75 (diff) |
gallium: added fb_width/height fields to softpipe context
These are convenience fields. Otherwise, we have to check cbuf[0] or zsbuf
in various places.
Diffstat (limited to 'src/gallium/drivers/softpipe/sp_context.h')
-rw-r--r-- | src/gallium/drivers/softpipe/sp_context.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/softpipe/sp_context.h b/src/gallium/drivers/softpipe/sp_context.h index 19e6cfaf02e..31d7062dcc0 100644 --- a/src/gallium/drivers/softpipe/sp_context.h +++ b/src/gallium/drivers/softpipe/sp_context.h @@ -84,6 +84,8 @@ struct softpipe_context { unsigned num_samplers; unsigned num_textures; + uint fb_width, fb_height; + /* Counter for occlusion queries. Note this supports overlapping * queries. */ |