mesa/src/gallium/auxiliary/rbug
Jon Turney 2649609ac5
rbug: Fix use of alloca() without #include "c99_alloca.h"
[12/60] Compiling C object 'src/gallium/auxiliary/eb820e8@@gallium@sta/rbug_rbug_texture.c.o'.
FAILED: src/gallium/auxiliary/eb820e8@@gallium@sta/rbug_rbug_texture.c.o
[...]
../src/gallium/auxiliary/rbug/rbug_texture.c: In function 'rbug_send_texture_info_reply':
../src/gallium/auxiliary/rbug/rbug_texture.c:302:21: error: implicit declaration of function 'alloca'; did you mean 'malloc'? [-Werror=implicit-function-declaration]
  uint32_t *height = alloca(sizeof(uint32_t) * height_len);
                     ^~~~~~
                     malloc
../src/gallium/auxiliary/rbug/rbug_texture.c:302:21: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
../src/gallium/auxiliary/rbug/rbug_texture.c:303:20: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
  uint32_t *depth = alloca(sizeof(uint32_t) * height_len);
                    ^~~~~~
cc1: some warnings being treated as errors

Include c99_alloca.h to portably make the alloca() prototype available.

See also: 498d9d0f, adfb9c5c, fc8139b1

Fixes: 6174cba7 ("rbug: fix transmitted texture sizes")
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
2019-10-25 16:04:34 +01:00
..
rbug.h
rbug_connection.c
rbug_connection.h
rbug_context.c
rbug_context.h
rbug_core.c
rbug_core.h
rbug_demarshal.c
rbug_internal.h
rbug_proto.h
rbug_shader.c
rbug_shader.h
rbug_texture.c rbug: Fix use of alloca() without #include "c99_alloca.h" 2019-10-25 16:04:34 +01:00
rbug_texture.h
README gallium: move ddebug, noop, rbug, trace to auxiliary to improve build times 2018-04-13 14:08:14 -04:00

                 GALLIUM REMOTE DEBUGGING COMMON CODE

= About =

This directory contains the common code for the Gallium 3D remote debugging
driver and clients. The code is two parts the connection managment code and
the (de)marsheller.

The code currently uses tcp and ip4v for connections.

Information about driver integration can be found in:

src/gallium/auxiliary/driver_rbug/README

for information about applications look in:

progs/rbug/README

for a GUI see:

  http://cgit.freedesktop.org/mesa/rbug-gui


--
Jakob Bornecrantz <jakob@vmware.com>