projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lima/ppir: enable vectorize optimization
[mesa.git]
/
src
/
gallium
/
drivers
/
svga
/
svga_screen.h
diff --git
a/src/gallium/drivers/svga/svga_screen.h
b/src/gallium/drivers/svga/svga_screen.h
index 7ef627f928d6ef5851dbf4a1f08156eeea799acb..12b93468da2eea73f0a6a2bb9541a9c0d5612abb 100644
(file)
--- a/
src/gallium/drivers/svga/svga_screen.h
+++ b/
src/gallium/drivers/svga/svga_screen.h
@@
-1,4
+1,4
@@
-/**********************************************************
+
/**********************************************************
* Copyright 2008-2009 VMware, Inc. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person
* Copyright 2008-2009 VMware, Inc. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person
@@
-30,8
+30,6
@@
#include "pipe/p_screen.h"
#include "os/os_thread.h"
#include "pipe/p_screen.h"
#include "os/os_thread.h"
-#include "util/u_double_list.h"
-
#include "svga_screen_cache.h"
#include "svga_screen_cache.h"
@@
-39,8
+37,6
@@
struct svga_winsys_screen;
struct svga_winsys_context;
struct SVGACmdMemory;
struct svga_winsys_context;
struct SVGACmdMemory;
-#define SVGA_COMBINE_USERBUFFERS 1
-
/**
* Subclass of pipe_screen
*/
/**
* Subclass of pipe_screen
*/
@@
-51,28
+47,52
@@
struct svga_screen
SVGA3dHardwareVersion hw_version;
SVGA3dHardwareVersion hw_version;
- unsigned use_ps30;
- unsigned use_vs30;
-
+ /** Device caps */
+ boolean haveProvokingVertex;
+ boolean haveLineStipple, haveLineSmooth;
+ float maxLineWidth, maxLineWidthAA;
+ float maxPointSize;
+ unsigned max_color_buffers;
+ unsigned max_const_buffers;
+ unsigned ms_samples;
+
struct {
boolean force_level_surface_view;
boolean force_surface_view;
boolean no_surface_view;
boolean force_sampler_view;
boolean no_sampler_view;
struct {
boolean force_level_surface_view;
boolean force_surface_view;
boolean no_surface_view;
boolean force_sampler_view;
boolean no_sampler_view;
+ boolean no_cache_index_buffers;
} debug;
unsigned texture_timestamp;
} debug;
unsigned texture_timestamp;
- pipe_mutex tex_mutex;
+ mtx_t tex_mutex;
+
+ mtx_t swc_mutex; /* Used for buffer uploads */
- pipe_mutex swc_mutex; /* Used for buffer uploads */
+ /* which formats to translate depth formats into */
+ struct {
+ enum SVGA3dSurfaceFormat z16;
+
+ /* note gallium order */
+ enum SVGA3dSurfaceFormat x8z24;
+ enum SVGA3dSurfaceFormat s8z24;
+ } depth;
struct svga_host_surface_cache cache;
struct svga_host_surface_cache cache;
+
+ /** HUD counters */
+ struct {
+ /** Memory used by all resources (buffers and surfaces) */
+ uint64_t total_resource_bytes;
+ uint64_t num_resources;
+ uint64_t num_failed_allocations;
+ } hud;
};
#ifndef DEBUG
/** cast wrapper */
};
#ifndef DEBUG
/** cast wrapper */
-static
INLINE
struct svga_screen *
+static
inline
struct svga_screen *
svga_screen(struct pipe_screen *pscreen)
{
return (struct svga_screen *) pscreen;
svga_screen(struct pipe_screen *pscreen)
{
return (struct svga_screen *) pscreen;