Skip to content

Commit b29d652

Browse files
committed
Chromium OS r68 for rpi3
0 parents  commit b29d652

File tree

67 files changed

+9778
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+9778
-0
lines changed

README.md

Lines changed: 372 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Copyright (c) 2018 The Fyde OS Authors. All rights reserved.
2+
# Distributed under the terms of the BSD
3+
4+
EAPI="5"
5+
EGIT_REPO_URI="https://github.com/FydeOS/rpi-boot-bin.git"
6+
7+
inherit git-2
8+
DESCRIPTION="rpi boot bin files"
9+
HOMEPAGE="http://fydeos.com"
10+
11+
LICENSE="BSD-Google"
12+
SLOT="0"
13+
KEYWORDS="*"
14+
IUSE=""
15+
16+
RDEPEND=""
17+
18+
DEPEND="${RDEPEND}"
19+
20+
src_install() {
21+
insinto /firmware/rpi
22+
doins -r "${S}"/*
23+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
Note: this licence applies to the binaries in the bin, sbin, and lib
2+
sub-directories. The header files in the include sub-directory and the example
3+
code in src describes their licence at the top of the file.
4+
5+
----
6+
7+
Copyright (c) 2006, Broadcom Corporation.
8+
All rights reserved.
9+
10+
Redistribution. Redistribution and use in binary form, without
11+
modification, are permitted provided that the following conditions are
12+
met:
13+
14+
* This software may only be used for the purposes of developing for,
15+
running or using a Raspberry Pi device.
16+
* Redistributions must reproduce the above copyright notice and the
17+
following disclaimer in the documentation and/or other materials
18+
provided with the distribution.
19+
* Neither the name of Broadcom Corporation nor the names of its suppliers
20+
may be used to endorse or promote products derived from this software
21+
without specific prior written permission.
22+
23+
DISCLAIMER. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
24+
CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
25+
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
26+
FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
27+
COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
28+
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
29+
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
30+
OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
31+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
32+
TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
33+
USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
34+
DAMAGE.
35+
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
From e9371012760c1a1edb39c7acfc24165cd1778f9d Mon Sep 17 00:00:00 2001
2+
From: =?UTF-8?q?St=C3=A9phane=20Marchesin?= <[email protected]>
3+
Date: Tue, 24 Jun 2014 15:32:37 -0700
4+
Subject: [PATCH 15/24] CHROMIUM: i965: Return NULL if we don't have a miptree
5+
6+
If we have no miptree (irb->mt == NULL) we still go ahead and look at
7+
the stencil miptree, which causes crashes. Instead, let's return NULL if
8+
we don't have a miptree, which will be correctly handled later.
9+
10+
BUG=chromium:387897
11+
TEST=can't reproduce the bug, but compiles and runs
12+
13+
Signed-off-by: Prince Agyeman <[email protected]>
14+
Signed-off-by: Dhinakaran Pandiyan <[email protected]>
15+
Signed-off-by: James Ausmus <[email protected]>
16+
Signed-off-by: Tomasz Figa <[email protected]>
17+
18+
---
19+
src/mesa/drivers/dri/i965/brw_misc_state.c | 2 ++
20+
1 file changed, 2 insertions(+)
21+
22+
diff --git a/src/mesa/drivers/dri/i965/brw_misc_state.c b/src/mesa/drivers/dri/i965/brw_misc_state.c
23+
index 27511525bffd..21ce2ed00194 100644
24+
--- a/src/mesa/drivers/dri/i965/brw_misc_state.c
25+
+++ b/src/mesa/drivers/dri/i965/brw_misc_state.c
26+
@@ -218,6 +218,8 @@ get_stencil_miptree(struct intel_renderbuffer *irb)
27+
{
28+
if (!irb)
29+
return NULL;
30+
+ if (!irb->mt)
31+
+ return NULL;
32+
if (irb->mt->stencil_mt)
33+
return irb->mt->stencil_mt;
34+
return irb->mt;
35+
--
36+
2.5.1
37+
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
From bd3c01004e6eb34907f71d7fdb9c95f60431dcc4 Mon Sep 17 00:00:00 2001
2+
From: Corbin Simpson <[email protected]>
3+
Date: Thu, 28 Aug 2014 14:48:31 -0700
4+
Subject: [PATCH] CHROMIUM: i965: Clamp scissor state instead of truncating on
5+
gen6.
6+
7+
Replaces one undefined behavior with another, slightly more friendly,
8+
undefined behavior.
9+
10+
This changes glScissor() behavior on i965 to clamp instead of truncate
11+
out-of-range scissors. Technically either behavior is acceptable, but
12+
clamping has more predictable results on out-of-range scissors.
13+
14+
BUG=chromium:360217
15+
TEST=Watched some Youtube on Link; can't reproduce original bug as reported.
16+
17+
Signed-off-by: Corbin Simpson <[email protected]>
18+
Signed-off-by: Prince Agyeman <[email protected]>
19+
Signed-off-by: Dhinakaran Pandiyan <[email protected]>
20+
Signed-off-by: James Ausmus <[email protected]>
21+
Signed-off-by: Tomasz Figa <[email protected]>
22+
Signed-off-by: Gurchetan Singh <[email protected]>
23+
---
24+
src/mesa/drivers/dri/i965/genX_state_upload.c | 23 +++++++++++++++--------
25+
1 file changed, 15 insertions(+), 8 deletions(-)
26+
27+
diff --git a/src/mesa/drivers/dri/i965/genX_state_upload.c b/src/mesa/drivers/dri/i965/genX_state_upload.c
28+
index a5ad2ca473..2fbf90ac7b 100644
29+
--- a/src/mesa/drivers/dri/i965/genX_state_upload.c
30+
+++ b/src/mesa/drivers/dri/i965/genX_state_upload.c
31+
@@ -56,6 +56,13 @@
32+
#include "main/varray.h"
33+
#include "main/viewport.h"
34+
35+
+/* Clamp scissors to 16-bit unsigned values; otherwise, the compiler truncates
36+
+ * them to fit inside the bitfields, which is often not what is desired.
37+
+ * My reading of GL and GLES specs suggests that overly-large scissor values are
38+
+ * not an erroring condition and that the actual behavior is undefined, so
39+
+ * switching from truncation to clamping is probably not a problem. ~ C. */
40+
+#define CLAMP_SCISSOR(X) CLAMP(X, 0x0000, 0xffff)
41+
+
42+
UNUSED static void *
43+
emit_dwords(struct brw_context *brw, unsigned n)
44+
{
45+
@@ -1980,16 +1987,16 @@ set_scissor_bits(const struct gl_context *ctx, int i,
46+
sc->ScissorRectangleYMax = 0;
47+
} else if (render_to_fbo) {
48+
/* texmemory: Y=0=bottom */
49+
- sc->ScissorRectangleXMin = bbox[0];
50+
- sc->ScissorRectangleXMax = bbox[1] - 1;
51+
- sc->ScissorRectangleYMin = bbox[2];
52+
- sc->ScissorRectangleYMax = bbox[3] - 1;
53+
+ sc->ScissorRectangleXMin = CLAMP_SCISSOR(bbox[0]);
54+
+ sc->ScissorRectangleXMax = CLAMP_SCISSOR(bbox[1] - 1);
55+
+ sc->ScissorRectangleYMin = CLAMP_SCISSOR(bbox[2]);
56+
+ sc->ScissorRectangleYMax = CLAMP_SCISSOR(bbox[3] - 1);
57+
} else {
58+
/* memory: Y=0=top */
59+
- sc->ScissorRectangleXMin = bbox[0];
60+
- sc->ScissorRectangleXMax = bbox[1] - 1;
61+
- sc->ScissorRectangleYMin = fb_height - bbox[3];
62+
- sc->ScissorRectangleYMax = fb_height - bbox[2] - 1;
63+
+ sc->ScissorRectangleXMin = CLAMP_SCISSOR(bbox[0]);
64+
+ sc->ScissorRectangleXMax = CLAMP_SCISSOR(bbox[1] - 1);
65+
+ sc->ScissorRectangleYMin = CLAMP_SCISSOR(fb_height - bbox[3]);
66+
+ sc->ScissorRectangleYMax = CLAMP_SCISSOR(fb_height - bbox[2] - 1);
67+
}
68+
}
69+
70+
--
71+
2.12.2
72+
Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
From 9729b53172a431c0c23bc805ab0a0f207424ee4f Mon Sep 17 00:00:00 2001
2+
From: =?UTF-8?q?Tapani=20P=C3=A4lli?= <[email protected]>
3+
Date: Tue, 18 Oct 2016 14:23:47 +0300
4+
Subject: [PATCH] FROMLIST: glcpp: Hack to handle expressions in #line
5+
directives.
6+
MIME-Version: 1.0
7+
Content-Type: text/plain; charset=UTF-8
8+
Content-Transfer-Encoding: 8bit
9+
10+
GLSL ES 320 technically allows #line to have arbitrary expression trees
11+
rather than integer literal constants, unlike the C and C++ preprocessor.
12+
This is likely a completely unused feature that does not make sense.
13+
14+
However, Android irritatingly mandates this useless behavior, so this
15+
patch implements a hack to try and support it.
16+
17+
We handle a single expression:
18+
19+
#line <line number expression>
20+
21+
but we avoid handling the double expression:
22+
23+
#line <line number expression> <source string expression>
24+
25+
because this is an ambiguous grammar. Instead, we handle the case that
26+
wraps both in parenthesis, which is actually well defined:
27+
28+
#line (<line number expression>) (<source string expression>)
29+
30+
With this change following tests pass:
31+
32+
dEQP-GLES3.functional.shaders.preprocessor.builtin.line_expression_vertex
33+
dEQP-GLES3.functional.shaders.preprocessor.builtin.line_expression_fragment
34+
dEQP-GLES3.functional.shaders.preprocessor.builtin.line_and_file_expression_vertex
35+
dEQP-GLES3.functional.shaders.preprocessor.builtin.line_and_file_expression_fragment
36+
37+
Signed-off-by: Tapani Pälli <[email protected]>
38+
Signed-off-by: Kenneth Graunke <[email protected]>
39+
40+
BUG=b:33352633
41+
BUG=b:33247335
42+
TEST=affected tests passing on CTS 7.1_r1 sentry
43+
44+
Change-Id: I7afbbb386bd4a582e3f241014a83eaccad1d50d9
45+
Reviewed-on: https://chromium-review.googlesource.com/427305
46+
Tested-by: Haixia Shi <[email protected]>
47+
Reviewed-by: Ilja H. Friedel <[email protected]>
48+
Commit-Queue: Haixia Shi <[email protected]>
49+
Trybot-Ready: Haixia Shi <[email protected]>
50+
[chadv: Cherry-picked from branch arc-12.1.0-pre2]
51+
(cherry picked from commit 18675d69bcd2a66483fcfc15f4c5fa5db4c257af)
52+
---
53+
src/compiler/glsl/glcpp/glcpp-parse.y | 21 ++++++++++++++++++---
54+
1 file changed, 19 insertions(+), 3 deletions(-)
55+
diff --git a/src/compiler/glsl/glcpp/glcpp-parse.y b/src/compiler/glsl/glcpp/glcpp-parse.y
56+
index 913bce1fde..c58c8572ed 100644
57+
--- a/src/compiler/glsl/glcpp/glcpp-parse.y
58+
+++ b/src/compiler/glsl/glcpp/glcpp-parse.y
59+
@@ -225,10 +225,12 @@ expanded_line:
60+
glcpp_error(& @1, parser, "undefined macro %s in expression (illegal in GLES)", $2.undefined_macro);
61+
_glcpp_parser_skip_stack_change_if (parser, & @1, "elif", $2.value);
62+
}
63+
-| LINE_EXPANDED integer_constant NEWLINE {
64+
+| LINE_EXPANDED expression NEWLINE {
65+
+ if (parser->is_gles && $2.undefined_macro)
66+
+ glcpp_error(& @1, parser, "undefined macro %s in expression (illegal in GLES)", $2.undefined_macro);
67+
parser->has_new_line_number = 1;
68+
- parser->new_line_number = $2;
69+
- _mesa_string_buffer_printf(parser->output, "#line %" PRIiMAX "\n", $2);
70+
+ parser->new_line_number = $2.value;
71+
+ _mesa_string_buffer_printf(parser->output, "#line %" PRIiMAX "\n", $2.value);
72+
}
73+
| LINE_EXPANDED integer_constant integer_constant NEWLINE {
74+
parser->has_new_line_number = 1;
75+
@@ -239,6 +241,19 @@ expanded_line:
76+
"#line %" PRIiMAX " %" PRIiMAX "\n",
77+
$2, $3);
78+
}
79+
+| LINE_EXPANDED '(' expression ')' '(' expression ')' NEWLINE {
80+
+ if (parser->is_gles && $3.undefined_macro)
81+
+ glcpp_error(& @1, parser, "undefined macro %s in expression (illegal in GLES)", $3.undefined_macro);
82+
+ if (parser->is_gles && $6.undefined_macro)
83+
+ glcpp_error(& @1, parser, "undefined macro %s in expression (illegal in GLES)", $6.undefined_macro);
84+
+ parser->has_new_line_number = 1;
85+
+ parser->new_line_number = $3.value;
86+
+ parser->has_new_source_number = 1;
87+
+ parser->new_source_number = $6.value;
88+
+ _mesa_string_buffer_printf(parser->output,
89+
+ "#line %" PRIiMAX " %" PRIiMAX "\n",
90+
+ $3.value, $6.value);
91+
+ }
92+
;
93+
94+
define:
95+
--
96+
2.14.2
97+

0 commit comments

Comments
 (0)