projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge commit 'origin/master' into gallium-sampler-view
[mesa.git]
/
src
/
gallium
/
drivers
/
svga
/
svga_screen_texture.h
diff --git
a/src/gallium/drivers/svga/svga_screen_texture.h
b/src/gallium/drivers/svga/svga_screen_texture.h
index 727f2c51d284bc3bff887746f05567d798264af2..96d035b12d80e75ab07201aff6b5e70107dea2c5 100644
(file)
--- a/
src/gallium/drivers/svga/svga_screen_texture.h
+++ b/
src/gallium/drivers/svga/svga_screen_texture.h
@@
-29,6
+29,7
@@
#include "pipe/p_compiler.h"
#include "pipe/p_state.h"
#include "pipe/p_compiler.h"
#include "pipe/p_state.h"
+#include "util/u_inlines.h"
#include "svga_screen_cache.h"
struct pipe_context;
#include "svga_screen_cache.h"
struct pipe_context;
@@
-38,7
+39,7
@@
struct svga_winsys_surface;
enum SVGA3dSurfaceFormat;
enum SVGA3dSurfaceFormat;
-#define SVGA_MAX_TEXTURE_LEVELS 1
2 /* 2048x2048 */
+#define SVGA_MAX_TEXTURE_LEVELS 1
6
/**
/**
@@
-61,7
+62,7
@@
struct svga_sampler_view
{
struct pipe_reference reference;
{
struct pipe_reference reference;
- struct
svga
_texture *texture;
+ struct
pipe
_texture *texture;
int min_lod;
int max_lod;
int min_lod;
int max_lod;
@@
-77,7
+78,7
@@
struct svga_texture
{
struct pipe_texture base;
{
struct pipe_texture base;
- boolean defined[6][
PIPE
_MAX_TEXTURE_LEVELS];
+ boolean defined[6][
SVGA
_MAX_TEXTURE_LEVELS];
struct svga_sampler_view *cached_view;
struct svga_sampler_view *cached_view;
@@
-94,6
+95,13
@@
struct svga_texture
* operation.
*/
struct svga_host_surface_cache_key key;
* operation.
*/
struct svga_host_surface_cache_key key;
+
+ /**
+ * Handle for the host side surface.
+ *
+ * This handle is owned by this texture. Views should hold on to a reference
+ * to this texture and never destroy this handle directly.
+ */
struct svga_winsys_surface *handle;
};
struct svga_winsys_surface *handle;
};
@@
-178,6
+186,9
@@
svga_surface_needs_propagation(struct pipe_surface *surf);
extern void
svga_screen_init_texture_functions(struct pipe_screen *screen);
extern void
svga_screen_init_texture_functions(struct pipe_screen *screen);
+void
+svga_init_texture_functions(struct pipe_context *pipe);
+
enum SVGA3dSurfaceFormat
svga_translate_format(enum pipe_format format);
enum SVGA3dSurfaceFormat
svga_translate_format(enum pipe_format format);