projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vl: add entrypoint to get_video_param
[mesa.git]
/
src
/
gallium
/
auxiliary
/
cso_cache
/
cso_cache.h
diff --git
a/src/gallium/auxiliary/cso_cache/cso_cache.h
b/src/gallium/auxiliary/cso_cache/cso_cache.h
index eea60b940bb8663f5037a804f1f0cec4068bbfc6..cc1f1c0e123aaa098d73f00e3da912a67ac73ba1 100644
(file)
--- a/
src/gallium/auxiliary/cso_cache/cso_cache.h
+++ b/
src/gallium/auxiliary/cso_cache/cso_cache.h
@@
-53,6
+53,7
@@
* - rasterizer (old setup)
* - sampler
* - vertex shader
* - rasterizer (old setup)
* - sampler
* - vertex shader
+ * - vertex elements
*
* Things that are not constant state objects include:
* - blend_color
*
* Things that are not constant state objects include:
* - blend_color
@@
-85,12
+86,12
@@
extern "C" {
#endif
enum cso_cache_type {
#endif
enum cso_cache_type {
+ CSO_RASTERIZER,
CSO_BLEND,
CSO_BLEND,
- CSO_SAMPLER,
CSO_DEPTH_STENCIL_ALPHA,
CSO_DEPTH_STENCIL_ALPHA,
- CSO_
RASTERIZ
ER,
- CSO_
FRAGMENT_SHADER
,
- CSO_
VERTEX_SHADER
+ CSO_
SAMPL
ER,
+ CSO_
VELEMENTS
,
+ CSO_
CACHE_MAX,
};
typedef void (*cso_state_callback)(void *ctx, void *obj);
};
typedef void (*cso_state_callback)(void *ctx, void *obj);
@@
-123,22
+124,20
@@
struct cso_rasterizer {
struct pipe_context *context;
};
struct pipe_context *context;
};
-struct cso_
fragment_shad
er {
- struct pipe_s
had
er_state state;
+struct cso_
sampl
er {
+ struct pipe_s
ampl
er_state state;
void *data;
cso_state_callback delete_state;
struct pipe_context *context;
};
void *data;
cso_state_callback delete_state;
struct pipe_context *context;
};
-struct cso_vertex_shader {
- struct pipe_shader_state state;
- void *data;
- cso_state_callback delete_state;
- struct pipe_context *context;
+struct cso_velems_state {
+ unsigned count;
+ struct pipe_vertex_element velems[PIPE_MAX_ATTRIBS];
};
};
-struct cso_
sampler
{
- struct
pipe_sampler
_state state;
+struct cso_
velements
{
+ struct
cso_velems
_state state;
void *data;
cso_state_callback delete_state;
struct pipe_context *context;
void *data;
cso_state_callback delete_state;
struct pipe_context *context;