mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
st/xorg: make the buffer size global
This commit is contained in:
parent
6b0bcfafab
commit
6c44d399bd
1 changed files with 9 additions and 1 deletions
|
|
@ -7,6 +7,14 @@
|
|||
struct xorg_shaders;
|
||||
struct exa_pixmap_priv;
|
||||
|
||||
/* max number of vertices *
|
||||
* max number of attributes per vertex *
|
||||
* max number of components per attribute
|
||||
*
|
||||
* currently the max is 5 quads
|
||||
*/
|
||||
#define BUF_SIZE (20 * 3 * 4)
|
||||
|
||||
struct xorg_renderer {
|
||||
struct pipe_context *pipe;
|
||||
|
||||
|
|
@ -16,7 +24,7 @@ struct xorg_renderer {
|
|||
struct pipe_constant_buffer vs_const_buffer;
|
||||
struct pipe_constant_buffer fs_const_buffer;
|
||||
|
||||
float vertices[4*3*4];
|
||||
float vertices[BUF_SIZE];
|
||||
};
|
||||
|
||||
struct xorg_renderer *renderer_create(struct pipe_context *pipe);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue