haiku: fix Mesa build
authorKen Mays <kmays2000@gmail.com>
Thu, 26 Sep 2019 09:47:06 +0000 (09:47 +0000)
committerJuan Suárez Romero <jasuarez@igalia.com>
Tue, 1 Oct 2019 10:31:02 +0000 (10:31 +0000)
commit4943c89d6d3f522b3100be9187ff045f84f032b1
tree9c572b4a77b3a0309cc829d417b55682f521c5a7
parente55df4c8596893ca7258a9f199610d8528d46640
haiku: fix Mesa build

1. The hgl.c file is a read-only file versus read-write.
Ref: src/gallium/state_trackers/hgl/hgl.c

2.  I've included the Haiku-specific patches I used to get a successful
build of Mesa 19.1.7 on Haiku using the meson/ninja build procedure.
Shows "[764/764] linking target ... libswpipe.so" at build completion.

v2:
Remove autotools files (Eric)

v3:
Update the patch

Reported-by: Ken Mays <kmays2000@gmail.com>
Tested-by: Ken Mays <kmays2000@gmail.com>
CC: mesa-stable@lists.freedesktop.org
Reviewed-by: Alexander von Gluck IV <kallisti5@unixzen.com>
src/gallium/state_trackers/hgl/hgl.c
src/gallium/state_trackers/hgl/hgl_context.h
src/gallium/targets/haiku-softpipe/GalliumContext.cpp
src/hgl/GLView.cpp