Marek Olšák
5981a5226e
nine: assume that user constant buffers are always supported
...
Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de >
2018-01-17 20:17:59 +01:00
Marek Olšák
e871abe452
gallium: remove PIPE_CAP_TEXTURE_SHADOW_MAP
...
Reviewed-by: Roland Scheidegger <sroland@vmware.com >
Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de >
2018-01-17 20:17:59 +01:00
Marek Olšák
e411d2572b
st/mesa: expose ARB_sync unconditionally
...
All drivers support it.
Reviewed-by: Roland Scheidegger <sroland@vmware.com >
Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de >
2018-01-17 20:17:59 +01:00
Marek Olšák
3778a0a533
gallium: remove PIPE_CAP_TWO_SIDED_STENCIL
...
Reviewed-by: Roland Scheidegger <sroland@vmware.com >
Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de >
2018-01-17 20:17:59 +01:00
Brian Paul
f631a6ae8c
glsl: remove unneeded extern "C" {} bracketing around Mesa includes
...
The two headers already have the right extern "C" annotations.
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com >
2018-01-17 11:17:56 -07:00
Brian Paul
7421e34dd6
mesa: move gl_external_samplers() to program.[ch]
...
The function is only called from a couple places. It doesn't make
sense to have it in mtypes.h
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com >
2018-01-17 11:17:56 -07:00
Brian Paul
6dc8896726
st/mesa: include util/bitscan.h in st_glsl_to_tgsi_temprename.cpp
...
And use "" instead of <> for including Mesa headers, as we do elsewhere.
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com >
2018-01-17 11:17:56 -07:00
Brian Paul
741d423478
glsl: include util/bitscan.h in serialize.cpp
...
Instead of relying on indirect inclusion of the header.
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com >
2018-01-17 11:17:56 -07:00
Brian Paul
2f14146200
util: include string.h in u_dynarray.h
...
To get memset() prototype.
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com >
2018-01-17 11:17:56 -07:00
Brian Paul
02c0734adc
mesa: remove unneeded #includes of main/compiler.h
...
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com >
2018-01-17 11:17:56 -07:00
Brian Paul
7845397183
st/mesa: remove unneeded #includes of main/compiler.h
...
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com >
2018-01-17 11:17:56 -07:00
Brian Paul
bafa33befd
st/mesa: include main/compiler.h in st_cb_queryobj.c
...
To get CPU_TO_LE32() macro.
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com >
2018-01-17 11:17:56 -07:00
Brian Paul
7de0262f8f
mesa: include util/macros.h in format_fallback.c
...
To get definition of unreachable() macro.
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com >
2018-01-17 11:17:56 -07:00
Brian Paul
484ac243f6
mesa: include compiler.h in disk_cache.c
...
Instead of indirect inclusion to get CPU_TO_LE32() macro.
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com >
2018-01-17 11:17:56 -07:00
Brian Paul
ad00a78993
mesa/program: change validate_inputs() local var 'inputs' to GLbitfield64
...
Both state->prog->info.inputs_read and state->InputsBound are GLbitfield64
so it seems that the OR of those values should be of the same type.
I'm not sure this fixes any actual issues though.
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com >
Reviewed-by: Roland Scheidegger <sroland@vmware.com >
2018-01-17 11:17:56 -07:00
Brian Paul
d8306de4ac
vbo: reindent vbo_attrib.h to use 3 spaces
...
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com >
Reviewed-by: Roland Scheidegger <sroland@vmware.com >
Reviewed-by: Emil Velikov <emil.velikov@collabora.com >
2018-01-17 11:17:56 -07:00
Brian Paul
ef01d911ee
vbo: whitespace, formatting fixes in vbo_exec_api.c
...
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com >
Reviewed-by: Roland Scheidegger <sroland@vmware.com >
Reviewed-by: Emil Velikov <emil.velikov@collabora.com >
2018-01-17 11:17:56 -07:00
Brian Paul
18f4241b89
vbo: add assertions, comments in vbo_exec_api.c
...
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com >
Reviewed-by: Roland Scheidegger <sroland@vmware.com >
Reviewed-by: Emil Velikov <emil.velikov@collabora.com >
2018-01-17 11:17:56 -07:00
Brian Paul
5e8962b58f
vbo: whitespace, formatting fixes in vbo_exec_draw.c
...
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com >
Reviewed-by: Roland Scheidegger <sroland@vmware.com >
Reviewed-by: Emil Velikov <emil.velikov@collabora.com >
2018-01-17 11:17:56 -07:00
Brian Paul
f5140c1a6b
vbo: use inputs_read var to simplify code
...
v2: add some const qualifiers, per Ian.
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com >
Reviewed-by: Roland Scheidegger <sroland@vmware.com >
Reviewed-by: Emil Velikov <emil.velikov@collabora.com >
2018-01-17 11:17:56 -07:00
Brian Paul
e6e78d98a2
vbo: whitespace, formatting fixes in vbo_split_copy.c
...
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com >
Reviewed-by: Roland Scheidegger <sroland@vmware.com >
Reviewed-by: Emil Velikov <emil.velikov@collabora.com >
2018-01-17 11:17:56 -07:00
Brian Paul
380165d399
vbo: use a new local 'array' variable in bind_vertex_list() loop
...
Make the code a bit more concise.
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com >
Reviewed-by: Roland Scheidegger <sroland@vmware.com >
Reviewed-by: Emil Velikov <emil.velikov@collabora.com >
2018-01-17 11:17:56 -07:00
Brian Paul
37863c38f3
vbo: remove unneeded #includes in vbo_context.c
...
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com >
Reviewed-by: Roland Scheidegger <sroland@vmware.com >
Reviewed-by: Emil Velikov <emil.velikov@collabora.com >
2018-01-17 11:17:56 -07:00
Brian Paul
76a08eeeec
vbo: whitespace, formatting fixes in vbo_context.c
...
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com >
Reviewed-by: Roland Scheidegger <sroland@vmware.com >
Reviewed-by: Emil Velikov <emil.velikov@collabora.com >
2018-01-17 11:17:56 -07:00
Brian Paul
95dec9097f
vbo: change vbo_context attribute map arrays to GLubyte
...
The values will never be larger than VBO_ATTRIB_MAX (currently 44).
v2: add STATIC_ASSERT to be sure VBO_ATTRIB_MAX can fit in ubyte,
per Emil.
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com >
Reviewed-by: Roland Scheidegger <sroland@vmware.com >
Reviewed-by: Emil Velikov <emil.velikov@collabora.com >
2018-01-17 11:17:56 -07:00
Brian Paul
5d78440d58
vbo: lift common code out of switch cases
...
Both switch cases began with the same code.
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com >
Reviewed-by: Roland Scheidegger <sroland@vmware.com >
Reviewed-by: Emil Velikov <emil.velikov@collabora.com >
2018-01-17 11:17:56 -07:00
Brian Paul
8e4efdc895
vbo: optimize some display list drawing (v2)
...
The vbo_save_vertex_list structure records one or more glBegin/End
primitives which all have the same vertex format.
To draw these primitives, we setup the vertex array state, then
issue the drawing command. Before, the 'start' vertex was typically
zero and we used the vertex array pointer to indicate where the
vertex data starts.
This patch checks if the vertex buffer offset is an exact multiple of
the vertex size. If so, that means we can use zero-based vertex array
pointers and use the draw's start value to indicate where the vertex
data starts.
This means a series of display list drawing commands may have
identical vertex array state. This will get filtered out by the
Gallium CSO module so we can issue a tight series of drawing commands
without state changes to the device.
Note that this also works for a series of glCallList commands (not
just one list that contains multiple glBegin/End pairs).
No Piglit or conform changes.
v2: minor fixes suggested by Ian.
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com >
2018-01-17 11:17:56 -07:00
Brian Paul
4edc8fdcdc
vbo: rewrite some code in playback_copy_to_current()
...
I think this is a little easier to understand.
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com >
2018-01-17 11:17:56 -07:00
Brian Paul
ad3b162b81
vbo: add some comments in vbo_save_api.c
...
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com >
2018-01-17 11:17:56 -07:00
Brian Paul
ee86c34664
vbo: rename some functions in vbo_save_api.c
...
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com >
2018-01-17 11:17:56 -07:00
Brian Paul
efb5ce1c5e
vbo: rename some functions in vbo_save_draw.c
...
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com >
2018-01-17 11:17:56 -07:00
Brian Paul
2064c4e814
vbo: add comment that vbo_save_vertex_list::buffer_offset is in bytes
...
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com >
2018-01-17 11:17:56 -07:00
Brian Paul
8b06acf642
vbo: minor code simplification in _save_compile_vertex_list()
...
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com >
2018-01-17 11:17:56 -07:00
Brian Paul
4acc8a0de3
vbo: rename prim to prims
...
Using a plural name makes it easier to see that this is an array and
not a pointer to a single object.
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com >
2018-01-17 11:17:56 -07:00
Brian Paul
841d1839e2
vbo: removed unused ctx parameter for alloc_prim_store()
...
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com >
2018-01-17 11:17:56 -07:00
Brian Paul
3442672df4
vbo: rename vbo_save_context::buffer to buffer_map
...
And move the field and improve comments.
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com >
2018-01-17 11:17:56 -07:00
Brian Paul
62fd12e5bc
vbo: remove unused vbo_save_context::count field
...
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com >
2018-01-17 11:17:56 -07:00
Brian Paul
1863b18ce6
vbo: s/GLuint/GLbitfield/ for vbo_save_context::replay_flags
...
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com >
2018-01-17 11:17:56 -07:00
Brian Paul
65df0d41cf
vbo: rename vbo_save_vertex_list::count to vertex_count
...
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com >
2018-01-17 11:17:56 -07:00
Brian Paul
b04195b959
vbo: rename vbo_save_vertex_store::buffer to buffer_map
...
To match other parts of the VBO code and make things easier to understand.
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com >
2018-01-17 11:17:56 -07:00
Brian Paul
213bef62c3
vbo: rename vbo_save_primitive_store::buffer to prims
...
A little easier to understand.
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com >
2018-01-17 11:17:56 -07:00
Brian Paul
1e9ca36058
vbo: whitespace fixes in vbo_save.h
...
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com >
2018-01-17 11:17:56 -07:00
Brian Paul
c40e9034be
vbo: whitespace fixes in vbo_save_draw.c
...
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com >
2018-01-17 11:17:56 -07:00
Brian Paul
7027d9c1fd
svga: add num-commands-per-draw HUD query
...
This query shows the ratio of total commands vs. drawing commands sent
to the vgpu device. This gives some idea of how many state changes
are sent per draw call. The closer the ratio is to 1.0, the better.
Reviewed-by: Charmaine Lee <charmainel@vmware.com >
Reviewed-by: Neha Bhende <bhenden@vmware.com >
2018-01-17 11:17:56 -07:00
Brian Paul
92840bd276
gallium/hud: Fix support for PIPE_DRIVER_QUERY_TYPE_FLOAT
...
Evidently, nobody has used PIPE_DRIVER_QUERY_TYPE_FLOAT up to this
point. Adding a driver query of this type which returns the query
value in pipe_query_result::f resulted in garbage output in the HUD.
The problem is the pipe_query_result::f field was being accessed as
through the u64 field and being added to the query_info::results_cumulative
field. This patch checks for PIPE_DRIVER_QUERY_TYPE_FLOAT in a few
places and scales the float by 1000 before converting to uint64_t.
Also, add some comments to explain the query_info::result_index field.
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
2018-01-17 11:17:56 -07:00
Brian Paul
23a5fae317
gallium/hud: remove uint64_t casts in sensor query_sti_load() function
...
The hud_graph_add_value() function takes a double value, so just pass
the current/critical values as-is since they're doubles.
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
2018-01-17 11:17:56 -07:00
Brian Paul
f774f2b52f
gallium/hud: compute cpu load, percent with doubles
...
The hud_graph_add_value() function takes a double precision value,
so compute it that way.
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
2018-01-17 11:17:56 -07:00
Brian Paul
541f569a19
gallium/hud: s/unsigned/enum pipe_query_type/
...
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
2018-01-17 11:17:56 -07:00
Jon Turney
3c35dad1df
meson: Set with_dri from with_gallium when DRI glx is explicitly configured
...
Set with_dri from with_gallium when DRI GLX is explicitly configured, as
well as when DRI GLX is chosen automatically.
Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk >
Reviewed-by: Dylan Baker <dylan@pnwbakers.com >
2018-01-17 18:05:18 +00:00
George Kyriazis
22a2027dd7
meson: add llvm dependency for swr build
...
Reviewed-by: Dylan Baker <dylan@pnwbakers.com >
2018-01-17 11:38:57 -06:00