diff options
author | Marek Olšák <[email protected]> | 2011-09-27 01:10:20 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2011-09-30 23:19:52 +0200 |
commit | 363ff844753c46ac9c13866627e096b091ea81f8 (patch) | |
tree | 3f5a9adeda3243ea6724c55a2ba75f65be7e6cce /src/gallium/drivers/r300/r300_context.h | |
parent | af8eb5c851a9d566059ae9e37745614cd96b9a13 (diff) |
winsys/radeon: move GEM domains out of the drivers into winsys
The drivers don't need to care about the domains. All they need to set
are the bind and usage flags. This simplifies the winsys too.
This also fixes on r600g:
- fbo-depth-GL_DEPTH_COMPONENT32F-copypixels
- fbo-depth-GL_DEPTH_COMPONENT16-copypixels
- fbo-depth-GL_DEPTH_COMPONENT24-copypixels
- fbo-depth-GL_DEPTH_COMPONENT32-copypixels
- fbo-depth-GL_DEPTH24_STENCIL8-copypixels
I can't explain it.
Reviewed-by: Alex Deucher <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r300/r300_context.h')
-rw-r--r-- | src/gallium/drivers/r300/r300_context.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/gallium/drivers/r300/r300_context.h b/src/gallium/drivers/r300/r300_context.h index 8c8c7ce129f..d8638fc1764 100644 --- a/src/gallium/drivers/r300/r300_context.h +++ b/src/gallium/drivers/r300/r300_context.h @@ -295,8 +295,6 @@ struct r300_query { struct radeon_winsys_cs_handle *cs_buf; /* The size of the buffer. */ unsigned buffer_size; - /* The domain of the buffer. */ - enum radeon_bo_domain domain; /* Linked list members. */ struct r300_query* prev; @@ -310,8 +308,6 @@ struct r300_surface { struct pb_buffer *buf; struct radeon_winsys_cs_handle *cs_buf; - enum radeon_bo_domain domain; - uint32_t offset; /* COLOROFFSET or DEPTHOFFSET. */ uint32_t pitch; /* COLORPITCH or DEPTHPITCH. */ uint32_t pitch_zmask; /* ZMASK_PITCH */ @@ -395,7 +391,6 @@ struct r300_resource /* Winsys buffer backing this resource. */ struct pb_buffer *buf; struct radeon_winsys_cs_handle *cs_buf; - enum radeon_bo_domain domain; /* Constant buffers are in user memory. */ uint8_t *constant_buffer; |