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/GalliumContext.h | |
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/GalliumContext.h')
-rw-r--r-- | src/gallium/targets/haiku-softpipe/GalliumContext.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gallium/targets/haiku-softpipe/GalliumContext.h b/src/gallium/targets/haiku-softpipe/GalliumContext.h index 88e9f81238e..e156ef895b4 100644 --- a/src/gallium/targets/haiku-softpipe/GalliumContext.h +++ b/src/gallium/targets/haiku-softpipe/GalliumContext.h @@ -58,6 +58,9 @@ public: GalliumContext(ulong options); ~GalliumContext(); + void Lock(); + void Unlock(); + context_id CreateContext(Bitmap* bitmap); void DestroyContext(context_id contextID); context_id GetCurrentContext() { return fCurrentContext; }; @@ -65,17 +68,18 @@ public: context_id contextID); status_t SwapBuffers(context_id contextID); + void ResizeViewport(int32 width, int32 height); private: status_t CreateScreen(); void Flush(); ulong fOptions; + struct pipe_screen* fScreen; + // Context Management struct hgl_context* fContext[CONTEXT_MAX]; context_id fCurrentContext; - - struct pipe_screen* fScreen; pipe_mutex fMutex; }; |