This repository was archived by the owner on Jun 1, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ static int va_SelectIntelDevice()
118118#if defined(ANDROID)
119119 char value[PROPERTY_VALUE_MAX ] = {};
120120
121- property_get (" video.hw.dgpu" , value, " 1 " );
121+ property_get (" video.hw.dgpu" , value, " 0 " );
122122 use_dgpu = atoi (value);
123123#endif
124124
@@ -138,13 +138,20 @@ static int va_SelectIntelDevice()
138138 if (strncmp (version->name , " i915" , strlen (" i915" )) == 0 ) {
139139 intel_gpu_index = i;
140140 // If specify to use dgpu and found dgpu, return the first found dgpu,
141+ // else if specify to use igpu and found igpu, return the first found igpu,
141142 // otherwise use the last available intel node for codec
142143 if (use_dgpu && va_IsIntelDgpu (temp)) {
143144 drmFreeVersion (version);
144145 close (temp);
145146 va_logd (" %s:%d find dgpu" , __FUNCTION__, __LINE__);
146147 break ;
147148 }
149+ if (!use_dgpu && !va_IsIntelDgpu (temp)) {
150+ va_logd (" %s:%d find igpu" , __FUNCTION__, __LINE__);
151+ drmFreeVersion (version);
152+ close (temp);
153+ break ;
154+ }
148155 }
149156 drmFreeVersion (version);
150157 close (temp);
You can’t perform that action at this time.
0 commit comments