提交 8baa5615 编写于 作者: C Chinmay Garde 提交者: GitHub

Remove third_party/mesa. (#2797)

上级 2d651029
此差异已折叠。
此差异已折叠。
kbr@chromium.org
senorblanco@chromium.org
piman@chromium.org
marcheu@chromium.org
Name: mesa
Version: 9.0.3
URL: http://www.mesa3d.org/
License: MIT and LGPL v2
Security Critical: Yes
Description:
This directory contains a copy of the Mesa sources with minor
modifications to work in Chromium's build infrastructure.
The license file in this directory is derived from src/docs/license.html
and src/docs/COPYING.
Modifications made:
- Added the file README.chromium (this file)
- Disabled optimizations using #pragma optimize('', off) in the
following files:
- src/src/mesa/main/mipmap.c
- src/src/mesa/main/pack.c
- src/src/mesa/math/m_eval.c
- src/src/mesa/swrast/s_texcombine.c
- Checked in sources normally autogenerated during Mesa's build
process under src/chromium_gensrc.
- Modified _mesa_add_parameter to not read from uninitialized
memory
- Added typedefs for EGLNative*Type in eglplatform.h, guarded by an
__APPLE__ define
- Modified glsl_strtod in src/glsl/strtod.c to use strtod instead of
strtod_l on Android
- Added an #include for <assert.h> at the top of
src/gallium/auxiliary/util/u_debug.h
- Fix a bug with Multiple Render Targets, see
https://code.google.com/p/chromium/issues/detail?id=308715
- #ifdef out inline definitions of math functions that are present in
VS2013's standard library.
- #pragma optimize off around _swrast_write_zoomed_z_span, ICEing on
VS2013: http://crbug.com/348350.
- Disabled "#pragma export" usage in gl.h and osmesa.h,
https://bugs.freedesktop.org/show_bug.cgi?id=77749
- Porting to x64 Android. Remove redefinitions of log2 and log2f.
https://codereview.chromium.org/216773005/
- Excluded src/mapi/mapi/mapi.{h,c} from the build.
- Backported f8e7aa2827e2bdb1ed238cbdd351be3c8a6e9b12 and
e20a2df4017ab10dd7199936948c6ac809bfacb6 to fix issues with
glGetIntegerv(GL_IMPLEMENTATION_COLOR_READ_FORMAT_OES) when no
framebuffer is bound
Compilation has a few phases:
1. Generate the header and dispatch source files that have to match the GL api.
These read in a description of the GL api in the form of XML files. In
addition, generate the GLSL parser and lexer using flex and bison. These
sources are needed for step 2
2. Compile everything in src/glsl into a library. This step uses the parser and
lexer output.
3. Compile the compiler (executable) that can create the builtin functions'
source file. Note that this step uses builtin_stubs.cpp because we haven't
generated the actual builtin functions' source file yet.
4. Invoke the compiler that we just built to create
gen/mesa/builtin_function.cpp
5. Compile the rest of mesa, using the builtins that we created in step 4. In
addition, link in all the files that we've previously compiled in step 2.
此差异已折叠。
# Copyright (c) 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import os
import os.path
import sys
output = sys.argv[1]
parentdir = os.path.abspath(os.path.join(output, os.pardir))
#The original body of this file is generated by this bash script:
#
#touch "${DIR}/git_sha1.h.tmp"
#if test -d .git; then \
# if which git > /dev/null; then \
# git log -n 1 --oneline | \
# sed 's/^\([^ ]*\) .*/#define MESA_GIT_SHA1 "git-\1"/' \
# > "${DIR}/git_sha1.h.tmp" ; \
# fi \
# fi
#if ! cmp -s "${DIR}/git_sha1.h.tmp" "${DIR}/git_sha1.h"; then \
# mv "${DIR}/git_sha1.h.tmp" "${DIR}/git_sha1.h" ;\
# else \
# rm "${DIR}/git_sha1.h.tmp" ;\
# fi
#
#However, Chromium shouldn't depend on Bash, and this preprocessor macro isn't
#neccessary in the first place
if not os.path.isdir(parentdir):
os.makedirs(parentdir)
with open(output, "w") as f:
pass
此差异已折叠。
此差异已折叠。
# Copyright (c) 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import os
import os.path
import subprocess
import sys
if len(sys.argv) < 3:
print "Usage: %s OUTPUTFILE SCRIPTNAME ARGUMENTS" % sys.argv[0]
print "Re-execs the python interpreter against SCRIPTNAME with ARGS,"
print "redirecting output to OUTPUTFILE."
sys.exit(1)
abs_outputfile = os.path.abspath(sys.argv[1])
abs_outputdir = os.path.dirname(abs_outputfile)
if not os.path.isdir(abs_outputdir):
os.makedirs(abs_outputdir)
ret = 0
with open(abs_outputfile, "w") as f:
ret = subprocess.Popen([sys.executable] + sys.argv[2:], stdout=f).wait()
if ret:
os.remove(abs_outputfile)
sys.exit(ret)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册