修訂 | 61dd79b6dcc217d6ca4b4723ac368a1157a58721 (tree) |
---|---|
時間 | 2016-01-25 03:00:32 |
作者 | Mauro Rossi <issor.oruam@gmai...> |
Commiter | Mauro Rossi |
i965: use the blitter instead of meta PBO functions also with gen5
Even if gen5 parts support OpenGL ES 3.0 on the paper,
packed PBO are not supported for those chipsets.
The checks for using meta PBO functions are changed to exclude gen5.
These changes are meant to avoid the hazi font problems for gen5 chipsets.
@@ -339,7 +339,7 @@ intelReadPixels(struct gl_context * ctx, | ||
339 | 339 | DBG("%s\n", __FUNCTION__); |
340 | 340 | |
341 | 341 | if (_mesa_is_bufferobj(pack->BufferObj)) { |
342 | - if (brw->gen >= 5) | |
342 | + if (brw->gen >= 6) | |
343 | 343 | if (_mesa_meta_pbo_GetTexSubImage(ctx, 2, NULL, x, y, 0, width, height, 1, |
344 | 344 | format, type, pixels, pack)) { |
345 | 345 | /* _mesa_meta_pbo_GetTexSubImage() implements PBO transfers by |
@@ -184,7 +184,7 @@ intelTexImage(struct gl_context * ctx, | ||
184 | 184 | _mesa_lookup_enum_by_nr(format), _mesa_lookup_enum_by_nr(type), |
185 | 185 | texImage->Level, texImage->Width, texImage->Height, texImage->Depth); |
186 | 186 | |
187 | - if (brw->gen >= 5) { | |
187 | + if (brw->gen >= 6) { | |
188 | 188 | ok = _mesa_meta_pbo_TexSubImage(ctx, dims, texImage, 0, 0, 0, |
189 | 189 | texImage->Width, texImage->Height, |
190 | 190 | texImage->Depth, |
@@ -301,7 +301,7 @@ intelTexSubImage(struct gl_context * ctx, | ||
301 | 301 | _mesa_lookup_enum_by_nr(format), _mesa_lookup_enum_by_nr(type), |
302 | 302 | texImage->Level, texImage->Width, texImage->Height, texImage->Depth); |
303 | 303 | |
304 | - if (brw->gen >= 5) { | |
304 | + if (brw->gen >= 6) { | |
305 | 305 | ok = _mesa_meta_pbo_TexSubImage(ctx, dims, texImage, |
306 | 306 | xoffset, yoffset, zoffset, |
307 | 307 | width, height, depth, format, type, |