diff options
author | Alexander von Gluck IV <[email protected]> | 2013-11-04 18:51:41 +0000 |
---|---|---|
committer | Alexander von Gluck IV <[email protected]> | 2013-11-05 01:17:55 +0000 |
commit | e759f1c111018949db114e76ebf1a723525fb802 (patch) | |
tree | fb0e28e14fe8da5391d009a724752abd4d80b15f /src/gallium/targets/haiku-softpipe/SoftwareRenderer.cpp | |
parent | faaf568cfb0548d6162d6fefd68f6ad62eb6406c (diff) |
target/haiku-softpipe: Fix viewport issues
* Call mesa viewport call on winndow resize
* Add initial postprocessing code
* Pass hgl_context to private statetracker
as it is more useful than GalliumContext
* Use Lock and Unlock functions to standardize
GalliumContext locking
* Create texture resources in texture validation
Acked-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/targets/haiku-softpipe/SoftwareRenderer.cpp')
-rw-r--r-- | src/gallium/targets/haiku-softpipe/SoftwareRenderer.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gallium/targets/haiku-softpipe/SoftwareRenderer.cpp b/src/gallium/targets/haiku-softpipe/SoftwareRenderer.cpp index fa71dd764e0..9d85b8d03e2 100644 --- a/src/gallium/targets/haiku-softpipe/SoftwareRenderer.cpp +++ b/src/gallium/targets/haiku-softpipe/SoftwareRenderer.cpp @@ -326,7 +326,8 @@ SoftwareRenderer::DirectConnected(direct_buffer_info *info) void SoftwareRenderer::FrameResized(float width, float height) { -// CALLED(); + TRACE("%s: %f x %f\n", __func__, width, height); + BAutolock lock(fInfoLocker); fNewWidth = (GLuint)width; fNewHeight = (GLuint)height; @@ -354,6 +355,11 @@ SoftwareRenderer::_AllocateBitmap() return; } + TRACE("%s: New bitmap size: %d x %d\n", __func__, + fBitmap->Bounds().IntegerWidth(), fBitmap->Bounds().IntegerHeight()); + + fContextObj->ResizeViewport(fWidth, fHeight); + #if 0 // debug.. void *data = fBitmap->Bits(); |