Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,11 @@ jobs:
restore-keys: "${{ runner.os }}-gradle-"

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4.2.0
uses: gradle/actions/setup-gradle@v4
with:
gradle-home-cache-cleanup: true
cache-read-only: ${{ !endsWith(github.ref_name, '/dev') }}

- name: Validate Gradle Wrapper Integrity
uses: gradle/wrapper-validation-action@v2

- name: Build
# Doesn't actually publish, as no secrets are passed in, just makes sure that publishing works
# Also generate the mod jars for the test job
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ public enum Driver {
AMD,
INTEL,
MESA,
UNKNOWN,
UNKNOWN;
}
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ private static int subgroupSize() {
}

private static boolean isInstancingSupported() {
if (CAPABILITIES == null) {
if (CAPABILITIES == null || isIntelHDGraphics()) {
return false;
}
if (CAPABILITIES.OpenGL33) {
Expand All @@ -150,7 +150,7 @@ private static boolean isInstancingSupported() {
}

private static boolean isIndirectSupported() {
if (CAPABILITIES == null) {
if (CAPABILITIES == null || isIntelHDGraphics()) {
return false;
}
if (CAPABILITIES.OpenGL46) {
Expand Down Expand Up @@ -215,4 +215,12 @@ void main() {}

return success;
}

// Intel HD Graphics support* instancing and indirect rendering.
// * However, in reality the support is horrible and doesn't actually work
// so whenever we encounter these, we have to fall back to flywheel:off
public static boolean isIntelHDGraphics() {
String vendor = GL20C.glGetString(GL20C.GL_VENDOR);
return vendor != null && vendor.contains("Intel(R) HD Graphics");
}
}